module FlowAccount::Configuration
Constants
- DEFAULT_ACCESS_TOKEN
- DEFAULT_ADAPTER
The adapter that will be used to connect if none is set
@note The default faraday adapter is Net::HTTP.
- DEFAULT_CLIENT_ID
- DEFAULT_CLIENT_SECRET
- DEFAULT_CONNECTION_OPTIONS
- DEFAULT_ENDPOINT
- DEFAULT_FORMAT
- DEFAULT_LOUD_LOGGER
- DEFAULT_NO_RESPONSE_WRAPPER
By default, don't wrap responses with meta data (i.e. pagination)
- DEFAULT_SCOPE
- DEFAULT_USER_AGENT
- VALID_OPTIONS_KEYS
Public Class Methods
extended(base)
click to toggle source
# File lib/flow_account/configuration.rb, line 54 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/flow_account/configuration.rb, line 50 def configure yield self end
options()
click to toggle source
# File lib/flow_account/configuration.rb, line 44 def options VALID_OPTIONS_KEYS.inject({}) do |options, key| options.merge!(key => send(key)) end end
reset()
click to toggle source
# File lib/flow_account/configuration.rb, line 58 def reset self.access_token = DEFAULT_ACCESS_TOKEN self.client_id = DEFAULT_CLIENT_ID self.client_secret = DEFAULT_CLIENT_SECRET self.scope = DEFAULT_SCOPE self.user_agent = DEFAULT_USER_AGENT self.format = DEFAULT_FORMAT self.loud_logger = DEFAULT_LOUD_LOGGER self.adapter = DEFAULT_ADAPTER self.endpoint = DEFAULT_ENDPOINT self.connection_options = DEFAULT_CONNECTION_OPTIONS self.no_response_wrapper= DEFAULT_NO_RESPONSE_WRAPPER end