Module: FaradayCage
- Extended by:
- FaradayCage
- Included in:
- FaradayCage
- Defined in:
- lib/faraday_cage.rb,
lib/faraday_cage/config.rb,
lib/faraday_cage/errors.rb,
lib/faraday_cage/server.rb,
lib/faraday_cage/status.rb,
lib/faraday_cage/helpers.rb,
lib/faraday_cage/version.rb,
lib/faraday_cage/response.rb,
lib/faraday_cage/rack_middleware.rb
Defined Under Namespace
Modules: Helpers, Response
Classes: Config, Error, RackMiddleware, Server, Status
Constant Summary
collapse
- VERSION =
'0.0.1'
Instance Method Summary
collapse
Instance Method Details
#config ⇒ Object
21
22
23
|
# File 'lib/faraday_cage.rb', line 21
def config
@config ||= Config.new
end
|
17
18
19
|
# File 'lib/faraday_cage.rb', line 17
def configure
yield(config)
end
|
#connection ⇒ Object
29
30
31
|
# File 'lib/faraday_cage.rb', line 29
def connection
server.connection
end
|
#reset! ⇒ Object
33
34
35
|
# File 'lib/faraday_cage.rb', line 33
def reset!
@server = nil
end
|