Class: OvirtSDK4::GracePeriod
- 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. -
#expiry ⇒ Integer
Returns the value of the
expiry
attribute. -
#expiry=(value) ⇒ Object
Sets the value of the
expiry
attribute. -
#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.
4307 4308 4309 4310 |
# File 'lib/ovirtsdk4/types.rb', line 4307 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.
4315 4316 4317 4318 |
# File 'lib/ovirtsdk4/types.rb', line 4315 def ==(other) super && @expiry == other.expiry end |
#expiry ⇒ Integer
Returns the value of the expiry
attribute.
4284 4285 4286 |
# File 'lib/ovirtsdk4/types.rb', line 4284 def expiry @expiry end |
#expiry=(value) ⇒ Object
Sets the value of the expiry
attribute.
4293 4294 4295 |
# File 'lib/ovirtsdk4/types.rb', line 4293 def expiry=(value) @expiry = value end |
#hash ⇒ Object
Generates a hash value for this object.
4323 4324 4325 4326 |
# File 'lib/ovirtsdk4/types.rb', line 4323 def hash super + @expiry.hash end |