module Attune

Hack NetHttpPersistent adapter to allow passing for env options We need this so we can pass in an option for idle_timout, until this is resolved github.com/lostisland/faraday/issues/262

Constants

MOCKS
VERSION

Public Class Methods

client() click to toggle source
# File lib/attune.rb, line 25
def self.client
  Client.new
end
configure(&block) click to toggle source
# File lib/attune.rb, line 38
def self.configure(&block)
  Default.configure(&block)
end
test_mode!() click to toggle source

Simulate all API calls This is equivalent to setting disabled to true and exception_handler to :mock

# File lib/attune.rb, line 32
def self.test_mode!
  configure do |c|
    c.exception_handler = :mock
    c.disabled = true
  end
end