Sha256: 25a21f8df03ec514cf58f1db5c7452482a918fa42895536fa18f3c1722fd97b8
Contents?: true
Size: 800 Bytes
Versions: 5
Compression:
Stored size: 800 Bytes
Contents
require 'faraday' require 'faraday_middleware' require 'faraday_middleware/parse_oj' module Lce class Client module Connection private def connection Faraday.new(:url => host) do |faraday| faraday.basic_auth(Lce.configuration.login, Lce.configuration.password) faraday.headers['Lce-Origin-Application'] = Lce.configuration.application faraday.headers['Lce-Origin-Version'] = Lce.configuration.version faraday.request :json faraday.response :mashify faraday.response :oj, :content_type => /\bjson$/ faraday.response :logger, Lce.configuration.logger faraday.adapter http_adapter end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems