module SageoneSdk::Default
Constants
- ACCESS_TOKEN
- API_ENDPOINT
- MEDIA_TYPE
- SIGNING_SECRET
- USER_AGENT
Public Class Methods
access_token()
click to toggle source
# File lib/sageone_sdk/default.rb, line 17 def access_token ENV["SAGE_ONE_ACCESS_TOKEN"] || ACCESS_TOKEN end
api_endpoint()
click to toggle source
# File lib/sageone_sdk/default.rb, line 25 def api_endpoint ENV["SAGE_ONE_API_ENDPOINT"] || API_ENDPOINT end
connection_options()
click to toggle source
# File lib/sageone_sdk/default.rb, line 37 def connection_options { :headers => { :accept => default_media_type, :user_agent => user_agent } } end
default_media_type()
click to toggle source
# File lib/sageone_sdk/default.rb, line 29 def default_media_type ENV["SAGE_ONE_DEFAULT_MEDIA_TYPE"] || MEDIA_TYPE end
options()
click to toggle source
# File lib/sageone_sdk/default.rb, line 13 def options Hash[SageoneSdk::Configurable.keys.map{|key| [key, send(key)]}] end
signing_secret()
click to toggle source
# File lib/sageone_sdk/default.rb, line 21 def signing_secret ENV["SAGE_ONE_SIGNING_SECRET"] || SIGNING_SECRET end
user_agent()
click to toggle source
# File lib/sageone_sdk/default.rb, line 33 def user_agent ENV["SAGE_ONE_USER_AGENT"] || USER_AGENT end