Class: OvirtSDK4::Ticket

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

- (Ticket) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Ticket 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.

  • :value (String)

    The value of attribute value.



17000
17001
17002
17003
17004
# File 'lib/ovirtsdk4/types.rb', line 17000

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

Instance Method Details

- (Integer) expiry

Returns the value of the expiry attribute.

Returns:

  • (Integer)


16957
16958
16959
# File 'lib/ovirtsdk4/types.rb', line 16957

def expiry
  return @expiry
end

- (Object) expiry=(value)

Sets the value of the expiry attribute.

Parameters:

  • value (Integer)


16966
16967
16968
# File 'lib/ovirtsdk4/types.rb', line 16966

def expiry=(value)
  @expiry = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


16975
16976
16977
# File 'lib/ovirtsdk4/types.rb', line 16975

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


16984
16985
16986
# File 'lib/ovirtsdk4/types.rb', line 16984

def value=(value)
  @value = value
end