module Cordial::Client

Encapsulates the configuration of each client before JIT before requests are made. This allows us to use our configuration which won't have been available until runtime, not load time.

Public Instance Methods

client() click to toggle source
# File lib/cordial/client.rb, line 6
def client
  base_uri 'https://api.cordial.io/v1'
  basic_auth(Cordial.config.api_key, '')
  headers 'Content-Type' => 'application/json'
  self
end