Module: Attune
- Defined in:
- lib/attune/net_http_persistent.rb,
lib/attune.rb,
lib/attune/client.rb,
lib/attune/default.rb,
lib/attune/version.rb,
lib/attune/json_logger.rb,
lib/attune/configurable.rb,
lib/attune/call_dropping.rb
Overview
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 https://github.com/lostisland/faraday/issues/262
Defined Under Namespace
Modules: Configurable, Default Classes: AuthenticationException, CallDropping, Client, DisabledException, JsonLogger, NetHttpPersistent
Constant Summary collapse
- VERSION =
"1.0.0"
Class Method Summary collapse
- .client ⇒ Object
- .configure(&block) ⇒ Object
-
.test_mode! ⇒ Object
Simulate all API calls This is equivalent to setting disabled to true and exception_handler to :mock.
Class Method Details
.client ⇒ Object
9 10 11 |
# File 'lib/attune.rb', line 9 def self.client Client.new end |
.configure(&block) ⇒ Object
22 23 24 |
# File 'lib/attune.rb', line 22 def self.configure(&block) Default.configure(&block) end |
.test_mode! ⇒ Object
Simulate all API calls This is equivalent to setting disabled to true and exception_handler to :mock
16 17 18 19 20 21 |
# File 'lib/attune.rb', line 16 def self.test_mode! configure do |c| c.exception_handler = :mock c.disabled = true end end |