Class: Circuitbox::ExconMiddleware::NullResponse
- Inherits:
-
Excon::Response
- Object
- Excon::Response
- Circuitbox::ExconMiddleware::NullResponse
- Defined in:
- lib/circuitbox/excon_middleware.rb
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(response, exception) ⇒ NullResponse
constructor
A new instance of NullResponse.
Constructor Details
#initialize(response, exception) ⇒ NullResponse
Returns a new instance of NullResponse.
14 15 16 17 18 |
# File 'lib/circuitbox/excon_middleware.rb', line 14 def initialize(response, exception) @original_response = response @original_exception = exception super(status: 503, response_headers: {}) end |
Instance Method Details
#[]=(key, value) ⇒ Object
20 21 22 |
# File 'lib/circuitbox/excon_middleware.rb', line 20 def []=(key, value) @data[key] = value end |