module Profitwell::Configuration
Constants
- DEFAULT_ACCESS_TOKEN
- DEFAULT_BASE_ENDPOINT
- DEFAULT_CONTENT_TYPE
- DEFAULT_VERSION
- VALID_OPTIONS_KEYS
Public Class Methods
extended(base)
click to toggle source
# File lib/profitwell/configuration.rb, line 17 def self.extended(base) base.reset end
Public Instance Methods
config() { |self| ... }
click to toggle source
# File lib/profitwell/configuration.rb, line 21 def config yield self if block_given? end
reset()
click to toggle source
# File lib/profitwell/configuration.rb, line 25 def reset self.access_token = DEFAULT_ACCESS_TOKEN self.version = DEFAULT_VERSION self.base_endpoint = DEFAULT_BASE_ENDPOINT self.content_type = DEFAULT_CONTENT_TYPE end