class Relcy::Client
Public Class Methods
new(api_key, cache_store=nil)
click to toggle source
# File lib/relcy/client.rb, line 11 def initialize(api_key, cache_store=nil) @connection = Faraday.new(:url => BASE_URL) do |conn| conn.request :url_encoded conn.response :json, :content_type => /\bjson$/ conn.use FaradayMiddleware::Caching, cache_store if cache_store conn.adapter :typhoeus conn.params["api_key"] = api_key end end