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

#href, #href=

Constructor Details

- (Io) initialize(opts = {})

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.



4349
4350
4351
4352
# File 'lib/ovirtsdk4/types.rb', line 4349

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

Instance Method Details

- (Integer) threads

Returns the value of the threads attribute.

Returns:

  • (Integer)


4326
4327
4328
# File 'lib/ovirtsdk4/types.rb', line 4326

def threads
  return @threads
end

- (Object) threads=(value)

Sets the value of the threads attribute.

Parameters:

  • value (Integer)


4335
4336
4337
# File 'lib/ovirtsdk4/types.rb', line 4335

def threads=(value)
  @threads = value
end