Class: OvirtSDK4::Ticket
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#expiry ⇒ Integer
Returns the value of the
expiryattribute. -
#expiry=(value) ⇒ Object
Sets the value of the
expiryattribute. -
#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
valueattribute. -
#value=(value) ⇒ Object
Sets the value of the
valueattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Ticket
Creates a new instance of the OvirtSDK4::Ticket class.
23762 23763 23764 23765 23766 |
# File 'lib/ovirtsdk4/types.rb', line 23762 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.
23771 23772 23773 23774 23775 |
# File 'lib/ovirtsdk4/types.rb', line 23771 def ==(other) super && @expiry == other.expiry && @value == other.value end |
#expiry ⇒ Integer
Returns the value of the expiry attribute.
23719 23720 23721 |
# File 'lib/ovirtsdk4/types.rb', line 23719 def expiry @expiry end |
#expiry=(value) ⇒ Object
Sets the value of the expiry attribute.
23728 23729 23730 |
# File 'lib/ovirtsdk4/types.rb', line 23728 def expiry=(value) @expiry = value end |
#hash ⇒ Object
Generates a hash value for this object.
23780 23781 23782 23783 23784 |
# File 'lib/ovirtsdk4/types.rb', line 23780 def hash super + @expiry.hash + @value.hash end |
#value ⇒ String
Returns the value of the value attribute.
23737 23738 23739 |
# File 'lib/ovirtsdk4/types.rb', line 23737 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
23746 23747 23748 |
# File 'lib/ovirtsdk4/types.rb', line 23746 def value=(value) @value = value end |