Class: Circuitbox::ExconMiddleware::NullResponse

Inherits:
Excon::Response
  • Object
show all
Defined in:
lib/circuitbox/excon_middleware.rb

Instance Method Summary collapse

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