Exception: Immunio::OverrideResponse

Inherits:
BlockError
  • Object
show all
Defined in:
lib/immunio/errors.rb

Overview

Response overridden by hook

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



35
36
37
# File 'lib/immunio/errors.rb', line 35

def body
  @body
end

#headersObject (readonly)

Returns the value of attribute headers.



35
36
37
# File 'lib/immunio/errors.rb', line 35

def headers
  @headers
end

#statusObject (readonly)

Returns the value of attribute status.



35
36
37
# File 'lib/immunio/errors.rb', line 35

def status
  @status
end