Sha256: f85f6777ec07866257a1481829b27c39533d35b3ffd23d22079516174ce39525

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

module Cordial
  # 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.
  module Client
    def client
      base_uri 'https://api.cordial.io/v1'
      basic_auth(Cordial.config.api_key, '')
      self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cordial-0.1.1 lib/cordial/client.rb
cordial-0.1.0 lib/cordial/client.rb