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.

Options Hash (opts):

  • :threads (Integer)

    The value of attribute threads.



7105
7106
7107
7108
# File 'lib/ovirtsdk4/types.rb', line 7105

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.



7113
7114
7115
7116
# File 'lib/ovirtsdk4/types.rb', line 7113

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

#hashObject

Generates a hash value for this object.



7121
7122
7123
7124
# File 'lib/ovirtsdk4/types.rb', line 7121

def hash
  super +
  @threads.hash
end

#threadsInteger

Returns the value of the threads attribute.



7082
7083
7084
# File 'lib/ovirtsdk4/types.rb', line 7082

def threads
  @threads
end

#threads=(value) ⇒ Object

Sets the value of the threads attribute.



7091
7092
7093
# File 'lib/ovirtsdk4/types.rb', line 7091

def threads=(value)
  @threads = value
end