class OvirtSDK4::Core

Public Class Methods

new(opts = {}) click to toggle source

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`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 2031
def initialize(opts = {})
  super(opts)
  self.index = opts[:index]
  self.socket = opts[:socket]
end

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 2040
def ==(other)
  super &&
  @index == other.index &&
  @socket == other.socket
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 2049
def hash
  super +
  @index.hash +
  @socket.hash
end
index() click to toggle source

Returns the value of the `index` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 1988
def index
  @index
end
index=(value) click to toggle source

Sets the value of the `index` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 1997
def index=(value)
  @index = value
end
socket() click to toggle source

Returns the value of the `socket` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 2006
def socket
  @socket
end
socket=(value) click to toggle source

Sets the value of the `socket` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 2015
def socket=(value)
  @socket = value
end