Class: OvirtSDK4::Core

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Core) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Core class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :index (Integer)

    The value of attribute index.

  • :socket (Integer)

    The value of attribute socket.



1618
1619
1620
1621
1622
# File 'lib/ovirtsdk4/types.rb', line 1618

def initialize(opts = {})
  super(opts)
  self.index = opts[:index]
  self.socket = opts[:socket]
end

Instance Method Details

- (Integer) index

Returns the value of the index attribute.

Returns:

  • (Integer)


1575
1576
1577
# File 'lib/ovirtsdk4/types.rb', line 1575

def index
  return @index
end

- (Object) index=(value)

Sets the value of the index attribute.

Parameters:

  • value (Integer)


1584
1585
1586
# File 'lib/ovirtsdk4/types.rb', line 1584

def index=(value)
  @index = value
end

- (Integer) socket

Returns the value of the socket attribute.

Returns:

  • (Integer)


1593
1594
1595
# File 'lib/ovirtsdk4/types.rb', line 1593

def socket
  return @socket
end

- (Object) socket=(value)

Sets the value of the socket attribute.

Parameters:

  • value (Integer)


1602
1603
1604
# File 'lib/ovirtsdk4/types.rb', line 1602

def socket=(value)
  @socket = value
end