Class: Dailymile::Connection::Token

Inherits:
Dailymile::Connection show all
Defined in:
lib/dailymile/connection/token.rb

Constant Summary

Constants inherited from Dailymile::Connection

DEFAULT_FORMAT, DEFAULT_HEADERS

Instance Method Summary collapse

Methods inherited from Dailymile::Connection

#delete, #get, #post, #put

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