Sha256: 6f85a8908a34e6c410c21bb5e5803c6f267557ac729c1e29b712f92f3abbacae

Contents?: true

Size: 538 Bytes

Versions: 5

Compression:

Stored size: 538 Bytes

Contents

# frozen_string_literal: true

module ActionNetworkRest
  class API < Vertebrae::API
    def setup
      connection.stack do |builder|
        builder.use Faraday::Request::Multipart
        builder.use Faraday::Request::UrlEncoded

        builder.use Faraday::Response::Logger if ENV['DEBUG']

        builder.use FaradayMiddleware::Mashify
        builder.use FaradayMiddleware::ParseJson

        builder.use ActionNetworkRest::Response::RaiseError
        builder.adapter connection.configuration.adapter
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
action_network_rest-0.12.0 lib/action_network_rest/api.rb
action_network_rest-0.11.0 lib/action_network_rest/api.rb
action_network_rest-0.10.0 lib/action_network_rest/api.rb
action_network_rest-0.9.0 lib/action_network_rest/api.rb
action_network_rest-0.8.2 lib/action_network_rest/api.rb