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.
23537 23538 23539 23540 23541 |
# File 'lib/ovirtsdk4/types.rb', line 23537 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.
23546 23547 23548 23549 23550 |
# File 'lib/ovirtsdk4/types.rb', line 23546 def ==(other) super && @datum == other.datum && @detail == other.detail end |
#datum ⇒ Float
Returns the value of the datum
attribute.
23494 23495 23496 |
# File 'lib/ovirtsdk4/types.rb', line 23494 def datum @datum end |
#datum=(value) ⇒ Object
Sets the value of the datum
attribute.
23503 23504 23505 |
# File 'lib/ovirtsdk4/types.rb', line 23503 def datum=(value) @datum = value end |
#detail ⇒ String
Returns the value of the detail
attribute.
23512 23513 23514 |
# File 'lib/ovirtsdk4/types.rb', line 23512 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail
attribute.
23521 23522 23523 |
# File 'lib/ovirtsdk4/types.rb', line 23521 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
23555 23556 23557 23558 23559 |
# File 'lib/ovirtsdk4/types.rb', line 23555 def hash super + @datum.hash + @detail.hash end |