Creates a new instance of the {Core} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :index The value of attribute `index`.
@option opts [Integer] :socket The value of attribute `socket`.
# File lib/ovirtsdk4/types.rb, line 1652 def initialize(opts = {}) super(opts) self.index = opts[:index] self.socket = opts[:socket] end
Returns the value of the `index` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 1609 def index return @index end
Sets the value of the `index` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 1618 def index=(value) @index = value end
Returns the value of the `socket` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 1627 def socket return @socket end
Sets the value of the `socket` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 1636 def socket=(value) @socket = value end