module OpConnect::Default

Default configuration options for {Client}

Constants

API_ENDPOINT
USER_AGENT

Public Class Methods

access_token() click to toggle source

Default access token from ENV

@return [String]

# File lib/op_connect/default.rb, line 25
def access_token
  ENV["OP_CONNECT_ACCESS_TOKEN"]
end
adapter() click to toggle source

Default network adapter for Faraday (defaults to :net_http)

@return [Symbol]

# File lib/op_connect/default.rb, line 33
def adapter
  Faraday.default_adapter
end
api_endpoint() click to toggle source

Default API endpoint from ENV or {API_ENDPOINT}

@return [<Type>] <description>

# File lib/op_connect/default.rb, line 41
def api_endpoint
  ENV["OP_CONNECT_API_ENDPOINT"] || API_ENDPOINT
end
options() click to toggle source

Configuration options

@return [Hash]

# File lib/op_connect/default.rb, line 17
def options
  OpConnect::Configurable.keys.map { |key| [key, send(key)] }.to_h
end
stubs() click to toggle source
# File lib/op_connect/default.rb, line 45
def stubs
end
user_agent() click to toggle source

Default user agent from ENV or {USER_AGENT}

@return [<Type>] <description>

# File lib/op_connect/default.rb, line 52
def user_agent
  ENV["OP_CONNECT_USER_AGENT"] || USER_AGENT
end