class Economic::Session

The Economic::Session contains details and behaviors for a current connection to the API endpoint.

Public Class Methods

agreement_grant_token() click to toggle source
# File lib/economic/session.rb, line 18
def agreement_grant_token
  raise ArgumentError, "Authentication tokens not set, Call Session.authentication" if @access_id.nil?

  @access_id
end
app_secret_token() click to toggle source
# File lib/economic/session.rb, line 12
def app_secret_token
  raise ArgumentError, "Authentication tokens not set, Call Session.authentication" if @private_app_id.nil?

  @private_app_id
end
authenticate(private_app_id, access_id)
Alias for: authentication
authentication(private_app_id, access_id) click to toggle source
# File lib/economic/session.rb, line 6
def authentication(private_app_id, access_id)
  @private_app_id = private_app_id
  @access_id = access_id
end
Also aliased as: authenticate