Exception: Immunio::OverrideResponse
- Inherits:
-
BlockError
- Object
- SecurityError
- BlockError
- Immunio::OverrideResponse
- Defined in:
- lib/immunio/errors.rb
Overview
Response overridden by hook
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers, body) ⇒ OverrideResponse
constructor
A new instance of OverrideResponse.
Constructor Details
#initialize(status, headers, body) ⇒ OverrideResponse
Returns a new instance of OverrideResponse.
37 38 39 40 41 |
# File 'lib/immunio/errors.rb', line 37 def initialize(status, headers, body) @status = status @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
35 36 37 |
# File 'lib/immunio/errors.rb', line 35 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
35 36 37 |
# File 'lib/immunio/errors.rb', line 35 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
35 36 37 |
# File 'lib/immunio/errors.rb', line 35 def status @status end |