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

#href, #href=

Constructor Details

- (GracePeriod) initialize(opts = {})

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

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :expiry (Integer)

    The value of attribute expiry.



2993
2994
2995
2996
# File 'lib/ovirtsdk4/types.rb', line 2993

def initialize(opts = {})
  super(opts)
  self.expiry = opts[:expiry]
end

Instance Method Details

- (Integer) expiry

Returns the value of the expiry attribute.

Returns:

  • (Integer)


2970
2971
2972
# File 'lib/ovirtsdk4/types.rb', line 2970

def expiry
  return @expiry
end

- (Object) expiry=(value)

Sets the value of the expiry attribute.

Parameters:

  • value (Integer)


2979
2980
2981
# File 'lib/ovirtsdk4/types.rb', line 2979

def expiry=(value)
  @expiry = value
end