Class: Seatsio::Domain::HoldToken
- Inherits:
-
Object
- Object
- Seatsio::Domain::HoldToken
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#expires_in_seconds ⇒ Object
readonly
Returns the value of attribute expires_in_seconds.
-
#hold_token ⇒ Object
readonly
Returns the value of attribute hold_token.
Instance Method Summary collapse
-
#initialize(data) ⇒ HoldToken
constructor
A new instance of HoldToken.
Constructor Details
#initialize(data) ⇒ HoldToken
Returns a new instance of HoldToken.
193 194 195 196 197 |
# File 'lib/seatsio/domain.rb', line 193 def initialize(data) @hold_token = data['holdToken'] @expires_at = Time.parse(data['expiresAt']) @expires_in_seconds = data['expiresInSeconds'] end |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
191 192 193 |
# File 'lib/seatsio/domain.rb', line 191 def expires_at @expires_at end |
#expires_in_seconds ⇒ Object (readonly)
Returns the value of attribute expires_in_seconds.
191 192 193 |
# File 'lib/seatsio/domain.rb', line 191 def expires_in_seconds @expires_in_seconds end |
#hold_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
191 192 193 |
# File 'lib/seatsio/domain.rb', line 191 def hold_token @hold_token end |