Sha256: 1d302cbdae593ca021c8a41c7bf7a465e4d0ac8b57847f4fd34b16c13af9671b
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
require 'faraday_middleware' require 'reward_expert/version' require 'reward_expert/client' require 'reward_expert/configuration' # RewardExpert module module RewardExpert class << self def configure yield Configuration.instance end def config Configuration.instance end 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reward_expert-0.1.0 | lib/reward_expert.rb |