Method: Access::Config#initialize
- Defined in:
- lib/access/config.rb
#initialize ⇒ Config
Returns a new instance of Config.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/access/config.rb', line 19 def initialize @access_token = ENV['ACCESS_TOKEN'] # demo, stage, production @api_environment = ENV['ACCESS_ENVIRONMENT'] || 'demo' # @api_version = ENV['ACCESS_VERSION'] || 'v1' @return_json = ENV['ACCESS_RETURN_JSON'] || 'false' # only used when return_json is true @hashify = ENV['ACCESS_HASHIFY'] || 'false' # how many seconds till we raise a Access::Error::Timeout @access_timeout = ENV['ACCESS_TIMEOUT'] || '10' # Set to 'true' to see the raw output of the httparty call @access_debug_output = ENV['ACCESS_DEBUG_OUTPUT'] || 'false' end |