Class: OvirtSDK4::Io
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave 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
threadsattribute. -
#threads=(value) ⇒ Object
Sets the value of the
threadsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Io
Creates a new instance of the OvirtSDK4::Io class.
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 |
#hash ⇒ Object
Generates a hash value for this object.
7121 7122 7123 7124 |
# File 'lib/ovirtsdk4/types.rb', line 7121 def hash super + @threads.hash end |
#threads ⇒ Integer
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 |