class Microclimate::Base
Public Instance Methods
connection()
click to toggle source
# File lib/microclimate/base.rb, line 5 def connection @connection ||= ::Faraday.new(:url => host) do |faraday| faraday.request :url_encoded # form-encode POST params faraday.response :logger # log requests to STDOUT faraday.adapter ::Faraday.default_adapter # make requests with Net::HTTP end end
host()
click to toggle source
# File lib/microclimate/base.rb, line 13 def host "https://codeclimate.com" end