Class: FabricCA::FaradayMiddleware::RaiseHttpException
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- FabricCA::FaradayMiddleware::RaiseHttpException
- Defined in:
- lib/fabric_ca/faraday_middleware/raise_http_exception.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Attributes.
-
#logger ⇒ Object
readonly
Attributes.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, logger) ⇒ RaiseHttpException
constructor
A new instance of RaiseHttpException.
Constructor Details
#initialize(app, logger) ⇒ RaiseHttpException
Returns a new instance of RaiseHttpException.
21 22 23 24 |
# File 'lib/fabric_ca/faraday_middleware/raise_http_exception.rb', line 21 def initialize(app, logger) @app = app @logger = logger end |
Instance Attribute Details
#app ⇒ Object (readonly)
Attributes
7 8 9 |
# File 'lib/fabric_ca/faraday_middleware/raise_http_exception.rb', line 7 def app @app end |
#logger ⇒ Object (readonly)
Attributes
7 8 9 |
# File 'lib/fabric_ca/faraday_middleware/raise_http_exception.rb', line 7 def logger @logger end |