module TmdbRexx::Connection

Public Instance Methods

connection(options = {}) click to toggle source
# File lib/tmdb_rexx/connection.rb, line 6
def connection(options = {})
  Faraday.new(options) do |build|
    build.request :url_encoded
    build.response :json, :content_type => /\bjson$/
    build.adapter  Faraday.default_adapter
  end
end