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.
24197 24198 24199 24200 24201 |
# File 'lib/ovirtsdk4/types.rb', line 24197 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.
24206 24207 24208 24209 24210 |
# File 'lib/ovirtsdk4/types.rb', line 24206 def ==(other) super && @datum == other.datum && @detail == other.detail end |
#datum ⇒ Float
Returns the value of the datum
attribute.
24154 24155 24156 |
# File 'lib/ovirtsdk4/types.rb', line 24154 def datum @datum end |
#datum=(value) ⇒ Object
Sets the value of the datum
attribute.
24163 24164 24165 |
# File 'lib/ovirtsdk4/types.rb', line 24163 def datum=(value) @datum = value end |
#detail ⇒ String
Returns the value of the detail
attribute.
24172 24173 24174 |
# File 'lib/ovirtsdk4/types.rb', line 24172 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail
attribute.
24181 24182 24183 |
# File 'lib/ovirtsdk4/types.rb', line 24181 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
24215 24216 24217 24218 24219 |
# File 'lib/ovirtsdk4/types.rb', line 24215 def hash super + @datum.hash + @detail.hash end |