Class: ActionNetworkRest::API

Inherits:
Vertebrae::API
  • Object
show all
Defined in:
lib/action_network_rest/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Instance Method Details

#setupObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/action_network_rest/api.rb', line 5

def setup
  connection.faraday_connection = Faraday.new(connection.configuration.faraday_options) do |f|
    f.request :multipart
    f.request :url_encoded

    f.response :mashify
    f.response :json

    f.response :actionnetwork_raise_error
    f.adapter connection.configuration.adapter
  end
end