Method: Keymaker::Service#connection
- Defined in:
- lib/keymaker/service.rb
#connection ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/keymaker/service.rb', line 17 def connection @connection ||= Faraday.new(url: config.connection_service_root_url) do |conn| conn.request :json conn.use FaradayMiddleware::ParseJson, content_type: /\bjson$/ conn.adapter :net_http end end |