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.
16 17 18 19 20 |
# File 'lib/circuitbox/excon_middleware.rb', line 16 def initialize(response, exception) @original_response = response @original_exception = exception super(status: 503, response_headers: {}) end |
Instance Method Details
#[]=(key, value) ⇒ Object
22 23 24 |
# File 'lib/circuitbox/excon_middleware.rb', line 22 def []=(key, value) @data[key] = value end |