module RewardExpert
RewardExpert
module
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/reward_expert.rb, line 13 def config Configuration.instance end
configure() { |instance| ... }
click to toggle source
# File lib/reward_expert.rb, line 9 def configure yield Configuration.instance end
connection()
click to toggle source
# File lib/reward_expert.rb, line 17 def connection Faraday.new("#{config.host}/#{config.api_prefix}") do |conn| conn.request :url_encoded conn.response :logger if config.log_response conn.response :json conn.basic_auth(*config.auth) if config.auth conn.adapter Faraday.default_adapter end end