module DPLibrary::Connection
Public Instance Methods
connection()
click to toggle source
# File lib/DPLibrary/connection.rb, line 6 def connection @connection = begin Faraday.new(:url => DPLibrary::Configuration::BASE_URL, :params => { :api_key => DPLibrary.api_key } ) do |c| c.request :url_encoded c.request :json c.response :json c.adapter Faraday.default_adapter end end end