Sha256: 4c779a797557a9d4d7108a2a4b73efda3626a47dbf8916c479dd7de1efa46f3e
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
require 'faraday' require 'faraday_middleware' module Speechpad # @private module Connection private 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speechpad-0.0.4 | lib/speechpad/connection.rb |