module PingMeMaybe::Connection

Public Class Methods

cronut_connection() click to toggle source
# File lib/ping_me_maybe/connection.rb, line 5
def self.cronut_connection
    Faraday.new(PingMeMaybe::Constants::CRONUT_HOST) do |c|
        c.request :url_encoded
        c.use Faraday::Adapter::NetHttp
        c.headers = {
            PingMeMaybe::Constants::CRONUT_API_TOKEN_HEADER => PingMeMaybe::Constants::CRONUT_API_TOKEN
        }
    end
end