Class: CTM::Token
- Inherits:
-
Object
- Object
- CTM::Token
- Defined in:
- lib/ctm/token.rb
Instance Attribute Summary collapse
-
#expires ⇒ Object
readonly
Returns the value of attribute expires.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #accounts(options = {}) ⇒ Object
-
#initialize(data) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(data) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/ctm/token.rb', line 5 def initialize(data) @token = data['token'] @expires = data['expires'] end |
Instance Attribute Details
#expires ⇒ Object (readonly)
Returns the value of attribute expires.
3 4 5 |
# File 'lib/ctm/token.rb', line 3 def expires @expires end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/ctm/token.rb', line 3 def token @token end |