module IOPromise::Faraday
Constants
- VERSION
Public Class Methods
new(url = nil, options = {}, &block)
click to toggle source
# File lib/iopromise/faraday.rb, line 9 def new(url = nil, options = {}, &block) options = ::Faraday.default_connection_options.merge(options) ::IOPromise::Faraday::Connection.new(url, options) do |faraday| faraday.adapter :typhoeus block.call(faraday) unless block.nil? end end