Module: Workarea::Orderbot::Authentication

Included in:
Gateway
Defined in:
lib/workarea/orderbot/authentication.rb

Instance Method Summary collapse

Instance Method Details

#tokenObject



4
5
6
7
8
9
# File 'lib/workarea/orderbot/authentication.rb', line 4

def token
  response = get_token

  body = JSON.parse(response.body)
  body['token']
end