Module: RatingChgkV2::Connection

Included in:
Request
Defined in:
lib/rating_chgk_v2/connection.rb

Constant Summary collapse

BASE_URL =
'https://api.rating.chgk.net/'

Instance Method Summary collapse

Instance Method Details

#connection(client) ⇒ Object



7
8
9
10
11
12
# File 'lib/rating_chgk_v2/connection.rb', line 7

def connection(client)
  Faraday.new(options(client), request_params_for(client)) do |faraday|
    faraday.adapter Faraday.default_adapter
    faraday.request :gzip
  end
end