Class: OvirtSDK4::Io
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Io
constructor
Creates a new instance of the Io class.
-
#threads ⇒ Integer
Returns the value of the
threads
attribute. -
#threads=(value) ⇒ Object
Sets the value of the
threads
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Io
Creates a new instance of the OvirtSDK4::Io class.
6363 6364 6365 6366 |
# File 'lib/ovirtsdk4/types.rb', line 6363 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.
6371 6372 6373 6374 |
# File 'lib/ovirtsdk4/types.rb', line 6371 def ==(other) super && @threads == other.threads end |
#hash ⇒ Object
Generates a hash value for this object.
6379 6380 6381 6382 |
# File 'lib/ovirtsdk4/types.rb', line 6379 def hash super + @threads.hash end |
#threads ⇒ Integer
Returns the value of the threads
attribute.
6340 6341 6342 |
# File 'lib/ovirtsdk4/types.rb', line 6340 def threads @threads end |
#threads=(value) ⇒ Object
Sets the value of the threads
attribute.
6349 6350 6351 |
# File 'lib/ovirtsdk4/types.rb', line 6349 def threads=(value) @threads = value end |