Module: RubyLokaliseApi::Connection
- Included in:
- Request
- Defined in:
- lib/ruby_lokalise_api/connection.rb
Constant Summary collapse
- BASE_URL =
'https://api.lokalise.com/api2/'
Instance Method Summary collapse
Instance Method Details
#connection(client) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/ruby_lokalise_api/connection.rb', line 7 def connection(client) Faraday.new((client), request_params_for(client)) do |faraday| faraday.adapter Faraday.default_adapter faraday.request :gzip end end |