Sha256: 7e6c4ac641d8be0bb6ec9ab2bfe26b7c44523f35f6c81f400a07db69eec7e9b9
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require 'faraday_middleware' require_relative '../faraday/raise_http_exception' module Postmates module Connection private def connection options = { headers: headers, ssl: { verify: false }, url: api_url } Faraday.new(options) do |connection| connection.use Faraday::Request::UrlEncoded connection.use Faraday::Request::BasicAuthentication, api_key, '' connection.use Faraday::Response::ParseJson connection.use FaradayMiddleware::RaiseHTTPException connection.adapter(Faraday.default_adapter) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postmates-0.1.0 | lib/postmates/connection.rb |