module GogoKit::Default

Default configuration options for {GogoKit::Client}

Constants

API_ROOT_ENDPOINTS

Default API root endpoints

AUTHORIZATION_ENDPOINTS

Default Authorize endpoints

OAUTH_TOKEN_ENDPOINTS

Default OAuth token endpoints

Public Class Methods

access_token() click to toggle source
# File lib/gogokit/default.rb, line 31
def access_token
  ENV['GOGOKIT_ACCESS_TOKEN']
end
api_environment() click to toggle source
# File lib/gogokit/default.rb, line 35
def api_environment
  env_api_environment = ENV['GOGOKIT_API_ENVIRONMENT']
  env_api_environment.nil? ? :production : env_api_environment.to_sym
end
api_root_endpoint() click to toggle source
# File lib/gogokit/default.rb, line 40
def api_root_endpoint
  ENV['GOGOKIT_API_ROOT_ENDPOINT'] ||
    GogoKit::Default::API_ROOT_ENDPOINTS[api_environment]
end
authorization_endpoint() click to toggle source
# File lib/gogokit/default.rb, line 50
def authorization_endpoint
  ENV['GOGOKIT_AUTHORIZATION_ENDPOINT'] ||
    GogoKit::Default::AUTHORIZATION_ENDPOINTS[api_environment]
end
client_id() click to toggle source
# File lib/gogokit/default.rb, line 23
def client_id
  ENV['GOGOKIT_CLIENT_ID']
end
client_secret() click to toggle source
# File lib/gogokit/default.rb, line 27
def client_secret
  ENV['GOGOKIT_CLIENT_SECRET']
end
oauth_token_endpoint() click to toggle source
# File lib/gogokit/default.rb, line 45
def oauth_token_endpoint
  ENV['GOGOKIT_OAUTH_TOKEN_ENDPOINT'] ||
    GogoKit::Default::OAUTH_TOKEN_ENDPOINTS[api_environment]
end