Class: OvirtSDK4::Range
- 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. -
#from ⇒ String
Returns the value of the
from
attribute. -
#from=(value) ⇒ Object
Sets the value of the
from
attribute. -
#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
to
attribute. -
#to=(value) ⇒ Object
Sets the value of the
to
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Range
Creates a new instance of the OvirtSDK4::Range class.
16222 16223 16224 16225 16226 |
# File 'lib/ovirtsdk4/types.rb', line 16222 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.
16231 16232 16233 16234 16235 |
# File 'lib/ovirtsdk4/types.rb', line 16231 def ==(other) super && @from == other.from && @to == other.to end |
#from ⇒ String
Returns the value of the from
attribute.
16179 16180 16181 |
# File 'lib/ovirtsdk4/types.rb', line 16179 def from @from end |
#from=(value) ⇒ Object
Sets the value of the from
attribute.
16188 16189 16190 |
# File 'lib/ovirtsdk4/types.rb', line 16188 def from=(value) @from = value end |
#hash ⇒ Object
Generates a hash value for this object.
16240 16241 16242 16243 16244 |
# File 'lib/ovirtsdk4/types.rb', line 16240 def hash super + @from.hash + @to.hash end |
#to ⇒ String
Returns the value of the to
attribute.
16197 16198 16199 |
# File 'lib/ovirtsdk4/types.rb', line 16197 def to @to end |
#to=(value) ⇒ Object
Sets the value of the to
attribute.
16206 16207 16208 |
# File 'lib/ovirtsdk4/types.rb', line 16206 def to=(value) @to = value end |