Module: MovieRexx::Connection

Included in:
Client
Defined in:
lib/movie_rexx/connection.rb

Instance Method Summary collapse

Instance Method Details

#connection(options = {}) ⇒ Object


6
7
8
9
10
11
12
13
# File 'lib/movie_rexx/connection.rb', line 6

def connection(options = {})
  Faraday.new(options) do |build|
    build.request :url_encoded
    build.response :mashify
    build.response :json, :content_type => /\bjson$/
    build.adapter  Faraday.default_adapter
  end
end