Class: OvirtSDK4::Value
- 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. -
#datum ⇒ Float
Returns the value of the
datum
attribute. -
#datum=(value) ⇒ Object
Sets the value of the
datum
attribute. -
#detail ⇒ String
Returns the value of the
detail
attribute. -
#detail=(value) ⇒ Object
Sets the value of the
detail
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Value
constructor
Creates a new instance of the Value class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Value
Creates a new instance of the OvirtSDK4::Value class.
23367 23368 23369 23370 23371 |
# File 'lib/ovirtsdk4/types.rb', line 23367 def initialize(opts = {}) super(opts) self.datum = opts[:datum] self.detail = opts[:detail] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
23376 23377 23378 23379 23380 |
# File 'lib/ovirtsdk4/types.rb', line 23376 def ==(other) super && @datum == other.datum && @detail == other.detail end |
#datum ⇒ Float
Returns the value of the datum
attribute.
23324 23325 23326 |
# File 'lib/ovirtsdk4/types.rb', line 23324 def datum @datum end |
#datum=(value) ⇒ Object
Sets the value of the datum
attribute.
23333 23334 23335 |
# File 'lib/ovirtsdk4/types.rb', line 23333 def datum=(value) @datum = value end |
#detail ⇒ String
Returns the value of the detail
attribute.
23342 23343 23344 |
# File 'lib/ovirtsdk4/types.rb', line 23342 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail
attribute.
23351 23352 23353 |
# File 'lib/ovirtsdk4/types.rb', line 23351 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
23385 23386 23387 23388 23389 |
# File 'lib/ovirtsdk4/types.rb', line 23385 def hash super + @datum.hash + @detail.hash end |