class Bitflyer::HTTP::Connection

Public Class Methods

new(key, secret) click to toggle source
# File lib/bitflyer/http.rb, line 17
def initialize(key, secret)
  @connection = Faraday::Connection.new(url: 'https://api.bitflyer.jp') do |f|
    f.request :json
    f.response :json
    f.use Authentication, key, secret
    f.adapter Faraday.default_adapter
  end
end