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.



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