Class: OvirtSDK4::Ticket
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#expiry ⇒ Integer
Returns the value of the
expiry
attribute. -
#expiry=(value) ⇒ Object
Sets the value of the
expiry
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Ticket
constructor
Creates a new instance of the Ticket class.
-
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Ticket
Creates a new instance of the OvirtSDK4::Ticket class.
22584 22585 22586 22587 22588 |
# File 'lib/ovirtsdk4/types.rb', line 22584 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.
22593 22594 22595 22596 22597 |
# File 'lib/ovirtsdk4/types.rb', line 22593 def ==(other) super && @expiry == other.expiry && @value == other.value end |
#expiry ⇒ Integer
Returns the value of the expiry
attribute.
22541 22542 22543 |
# File 'lib/ovirtsdk4/types.rb', line 22541 def expiry @expiry end |
#expiry=(value) ⇒ Object
Sets the value of the expiry
attribute.
22550 22551 22552 |
# File 'lib/ovirtsdk4/types.rb', line 22550 def expiry=(value) @expiry = value end |
#hash ⇒ Object
Generates a hash value for this object.
22602 22603 22604 22605 22606 |
# File 'lib/ovirtsdk4/types.rb', line 22602 def hash super + @expiry.hash + @value.hash end |
#value ⇒ String
Returns the value of the value
attribute.
22559 22560 22561 |
# File 'lib/ovirtsdk4/types.rb', line 22559 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
22568 22569 22570 |
# File 'lib/ovirtsdk4/types.rb', line 22568 def value=(value) @value = value end |