Sha256: dbfa4e24a10db5defd7a566df6c6f44bf38da9c4fa2670cf0257b25e55ca3728
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 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
5 entries across 5 versions & 1 rubygems