module MaterialServiceClient

Constants

VERSION

Private Class Methods

get_connection() click to toggle source
# File lib/material_service_client.rb, line 70
def self.get_connection
        conn = Faraday.new(:url => ENV['MATERIALS_URL']) do |faraday|
          # faraday.use ZipkinTracer::FaradayHandler, 'eve'
          faraday.proxy ENV['MATERIALS_URL']
          faraday.request  :url_encoded
          faraday.response :logger
          faraday.adapter  Faraday.default_adapter
        end
        conn.headers = {'Content-Type' => 'application/json'}
        conn
end