Sha256: e91c913bf4969e8ab27fdc1b8eff70db0db04666c7c24646eba82d59b80decdb
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
require "bitflyer_api/http/middleware" require "faraday" require "faraday_middleware" module BitflyerApi module HTTP class Connection extend Forwardable def_delegators :@conn, :get, :post 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bitflyer_api-0.1.1 | lib/bitflyer_api/http/connection.rb |
bitflyer_api-0.1.0 | lib/bitflyer_api/http/connection.rb |