Class: OvirtSDK4::ProxyTicket

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 = {}) ⇒ ProxyTicket

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

  • :value (String)

    The value of attribute value.


14975
14976
14977
14978
# File 'lib/ovirtsdk4/types.rb', line 14975

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

Instance Method Details

#==(other) ⇒ Object

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


14983
14984
14985
14986
# File 'lib/ovirtsdk4/types.rb', line 14983

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

#hashObject

Generates a hash value for this object.


14991
14992
14993
14994
# File 'lib/ovirtsdk4/types.rb', line 14991

def hash
  super +
  @value.hash
end

#valueString

Returns the value of the value attribute.

Returns:

  • (String)

14952
14953
14954
# File 'lib/ovirtsdk4/types.rb', line 14952

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.

Parameters:

  • value (String)

14961
14962
14963
# File 'lib/ovirtsdk4/types.rb', line 14961

def value=(value)
  @value = value
end