Class: OvirtSDK4::Value
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#datum ⇒ Float
Returns the value of the
datumattribute. -
#datum=(value) ⇒ Object
Sets the value of the
datumattribute. -
#detail ⇒ String
Returns the value of the
detailattribute. -
#detail=(value) ⇒ Object
Sets the value of the
detailattribute. -
#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.
24940 24941 24942 24943 24944 |
# File 'lib/ovirtsdk4/types.rb', line 24940 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.
24949 24950 24951 24952 24953 |
# File 'lib/ovirtsdk4/types.rb', line 24949 def ==(other) super && @datum == other.datum && @detail == other.detail end |
#datum ⇒ Float
Returns the value of the datum attribute.
24897 24898 24899 |
# File 'lib/ovirtsdk4/types.rb', line 24897 def datum @datum end |
#datum=(value) ⇒ Object
Sets the value of the datum attribute.
24906 24907 24908 |
# File 'lib/ovirtsdk4/types.rb', line 24906 def datum=(value) @datum = value end |
#detail ⇒ String
Returns the value of the detail attribute.
24915 24916 24917 |
# File 'lib/ovirtsdk4/types.rb', line 24915 def detail @detail end |
#detail=(value) ⇒ Object
Sets the value of the detail attribute.
24924 24925 24926 |
# File 'lib/ovirtsdk4/types.rb', line 24924 def detail=(value) @detail = value end |
#hash ⇒ Object
Generates a hash value for this object.
24958 24959 24960 24961 24962 |
# File 'lib/ovirtsdk4/types.rb', line 24958 def hash super + @datum.hash + @detail.hash end |