Class: Dailymile::Connection::Token
- Inherits:
-
Dailymile::Connection
- Object
- Dailymile::Connection
- Dailymile::Connection::Token
- Defined in:
- lib/dailymile/connection/token.rb
Constant Summary
Constants inherited from Dailymile::Connection
DEFAULT_FORMAT, DEFAULT_HEADERS
Instance Method Summary collapse
- #access_token=(token) ⇒ Object
-
#initialize(client, token) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Dailymile::Connection
Constructor Details
#initialize(client, token) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/dailymile/connection/token.rb', line 5 def initialize(client, token) @client = client set_access_token token end |
Instance Method Details
#access_token=(token) ⇒ Object
10 11 12 |
# File 'lib/dailymile/connection/token.rb', line 10 def access_token=(token) set_access_token token end |