Class: OvirtSDK4::GracePeriod

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ GracePeriod

Creates a new instance of the OvirtSDK4::GracePeriod class.

Options Hash (opts):

  • :expiry (Integer)

    The value of attribute expiry.



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

#expiryInteger

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

#hashObject

Generates a hash value for this object.



4361
4362
4363
4364
# File 'lib/ovirtsdk4/types.rb', line 4361

def hash
  super +
  @expiry.hash
end