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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Ticket

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

Options Hash (opts):

  • :expiry (Integer)

    The value of attribute expiry.

  • :value (String)

    The value of attribute value.



23492
23493
23494
23495
23496
# File 'lib/ovirtsdk4/types.rb', line 23492

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

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



23501
23502
23503
23504
23505
# File 'lib/ovirtsdk4/types.rb', line 23501

def ==(other)
  super &&
  @expiry == other.expiry &&
  @value == other.value
end

#expiryInteger

Returns the value of the expiry attribute.



23449
23450
23451
# File 'lib/ovirtsdk4/types.rb', line 23449

def expiry
  @expiry
end

#expiry=(value) ⇒ Object

Sets the value of the expiry attribute.



23458
23459
23460
# File 'lib/ovirtsdk4/types.rb', line 23458

def expiry=(value)
  @expiry = value
end

#hashObject

Generates a hash value for this object.



23510
23511
23512
23513
23514
# File 'lib/ovirtsdk4/types.rb', line 23510

def hash
  super +
  @expiry.hash +
  @value.hash
end

#valueString

Returns the value of the value attribute.



23467
23468
23469
# File 'lib/ovirtsdk4/types.rb', line 23467

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.



23476
23477
23478
# File 'lib/ovirtsdk4/types.rb', line 23476

def value=(value)
  @value = value
end