Class: OvirtSDK4::GracePeriod
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#expiry ⇒ Integer
Returns the value of the
expiryattribute. -
#expiry=(value) ⇒ Object
Sets the value of the
expiryattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ GracePeriod
constructor
Creates a new instance of the GracePeriod class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GracePeriod
Creates a new instance of the OvirtSDK4::GracePeriod class.
4345 4346 4347 4348 |
# File 'lib/ovirtsdk4/types.rb', line 4345 def initialize(opts = {}) super(opts) self.expiry = opts[:expiry] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
4353 4354 4355 4356 |
# File 'lib/ovirtsdk4/types.rb', line 4353 def ==(other) super && @expiry == other.expiry end |
#expiry ⇒ Integer
Returns the value of the expiry attribute.
4322 4323 4324 |
# File 'lib/ovirtsdk4/types.rb', line 4322 def expiry @expiry end |
#expiry=(value) ⇒ Object
Sets the value of the expiry attribute.
4331 4332 4333 |
# File 'lib/ovirtsdk4/types.rb', line 4331 def expiry=(value) @expiry = value end |
#hash ⇒ Object
Generates a hash value for this object.
4361 4362 4363 4364 |
# File 'lib/ovirtsdk4/types.rb', line 4361 def hash super + @expiry.hash end |