class BitFlyer::Api::Base

Constants

BASE_URL

Private Instance Methods

connect() click to toggle source
# File lib/bit_flyer/api/base.rb, line 8
def connect
  @connect ||= Faraday.new(:url => BitFlyer::Api::Base::BASE_URL) do |faraday|
    faraday.request  :url_encoded             # form-encode POST params
    faraday.response :logger                  # log requests to STDOUT
    faraday.adapter  Faraday.default_adapter  # make requests with Net::HTTP
  end
end