Class: OvirtSDK4::Io

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Io

Creates a new instance of the OvirtSDK4::Io 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):

  • :threads (Integer)

    The value of attribute threads.



6340
6341
6342
6343
# File 'lib/ovirtsdk4/types.rb', line 6340

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

Instance Method Details

#==(other) ⇒ Object

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



6348
6349
6350
6351
# File 'lib/ovirtsdk4/types.rb', line 6348

def ==(other)
  super &&
  @threads == other.threads
end

#hashObject

Generates a hash value for this object.



6356
6357
6358
6359
# File 'lib/ovirtsdk4/types.rb', line 6356

def hash
  super +
  @threads.hash
end

#threadsInteger

Returns the value of the threads attribute.

Returns:

  • (Integer)


6317
6318
6319
# File 'lib/ovirtsdk4/types.rb', line 6317

def threads
  @threads
end

#threads=(value) ⇒ Object

Sets the value of the threads attribute.

Parameters:

  • value (Integer)


6326
6327
6328
# File 'lib/ovirtsdk4/types.rb', line 6326

def threads=(value)
  @threads = value
end