Class: Seatsio::HoldToken
- Inherits:
-
Object
- Object
- Seatsio::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.
-
#workspace_key ⇒ Object
readonly
Returns the value of attribute workspace_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ HoldToken
constructor
A new instance of HoldToken.
Constructor Details
#initialize(data) ⇒ HoldToken
Returns a new instance of HoldToken.
328 329 330 331 332 333 |
# File 'lib/seatsio/domain.rb', line 328 def initialize(data) @hold_token = data['holdToken'] @expires_at = Time.parse(data['expiresAt']) @expires_in_seconds = data['expiresInSeconds'] @workspace_key = data['workspaceKey'] end |
Instance Attribute Details
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
326 327 328 |
# File 'lib/seatsio/domain.rb', line 326 def expires_at @expires_at end |
#expires_in_seconds ⇒ Object (readonly)
Returns the value of attribute expires_in_seconds.
326 327 328 |
# File 'lib/seatsio/domain.rb', line 326 def expires_in_seconds @expires_in_seconds end |
#hold_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
326 327 328 |
# File 'lib/seatsio/domain.rb', line 326 def hold_token @hold_token end |
#workspace_key ⇒ Object (readonly)
Returns the value of attribute workspace_key.
326 327 328 |
# File 'lib/seatsio/domain.rb', line 326 def workspace_key @workspace_key end |