module Speechpad::Connection
@private
Private Instance Methods
connection(options={})
click to toggle source
# File lib/speechpad/connection.rb, line 9 def connection(options={}) connection = Faraday.new @speechpad_url do |conn| # Uncomment if want to log to stdout #conn.response :logger conn.request :url_encoded conn.response :mashify conn.response :json, :content_type => /\bjson$/ conn.adapter Faraday.default_adapter end connection end