class BitflyerApi::HTTP::Connection
Public Class Methods
new(key, secret)
click to toggle source
# File lib/bitflyer_api/http/connection.rb, line 11 def initialize(key, secret) @conn = Faraday.new(url: "https://api.bitflyer.jp") do |conn| conn.request :json conn.response :json conn.use BitflyerApi::HTTP::Middleware, key, secret conn.adapter Faraday.default_adapter end end