Class: Bitflyer::HTTP::Connection

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bitflyer/http.rb

Instance Method Summary collapse

Constructor Details

#initializeConnection

Returns a new instance of Connection.



14
15
16
17
18
19
20
# File 'lib/bitflyer/http.rb', line 14

def initialize
  @connection = Faraday::Connection.new(:url => 'https://api.bitflyer.jp/v1') do |f|
    f.request :json
    f.response :json
    f.adapter Faraday.default_adapter
  end
end