Class: OvirtSDK4::Range
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#from ⇒ String
Returns the value of the
fromattribute. -
#from=(value) ⇒ Object
Sets the value of the
fromattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Range
constructor
Creates a new instance of the Range class.
-
#to ⇒ String
Returns the value of the
toattribute. -
#to=(value) ⇒ Object
Sets the value of the
toattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Range
Creates a new instance of the OvirtSDK4::Range class.
17324 17325 17326 17327 17328 |
# File 'lib/ovirtsdk4/types.rb', line 17324 def initialize(opts = {}) super(opts) self.from = opts[:from] self.to = opts[:to] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
17333 17334 17335 17336 17337 |
# File 'lib/ovirtsdk4/types.rb', line 17333 def ==(other) super && @from == other.from && @to == other.to end |
#from ⇒ String
Returns the value of the from attribute.
17281 17282 17283 |
# File 'lib/ovirtsdk4/types.rb', line 17281 def from @from end |
#from=(value) ⇒ Object
Sets the value of the from attribute.
17290 17291 17292 |
# File 'lib/ovirtsdk4/types.rb', line 17290 def from=(value) @from = value end |
#hash ⇒ Object
Generates a hash value for this object.
17342 17343 17344 17345 17346 |
# File 'lib/ovirtsdk4/types.rb', line 17342 def hash super + @from.hash + @to.hash end |
#to ⇒ String
Returns the value of the to attribute.
17299 17300 17301 |
# File 'lib/ovirtsdk4/types.rb', line 17299 def to @to end |
#to=(value) ⇒ Object
Sets the value of the to attribute.
17308 17309 17310 |
# File 'lib/ovirtsdk4/types.rb', line 17308 def to=(value) @to = value end |