Class: Bitflyer::HTTP::Connection
- Inherits:
-
Object
- Object
- Bitflyer::HTTP::Connection
- Extended by:
- Forwardable
- Defined in:
- lib/bitflyer/http.rb
Instance Method Summary collapse
-
#initialize ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize ⇒ Connection
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 |