Exception: Customerio::InvalidResponse
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Customerio::InvalidResponse
- Defined in:
- lib/customerio/base_client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code, body, response = nil) ⇒ InvalidResponse
constructor
A new instance of InvalidResponse.
Constructor Details
#initialize(code, body, response = nil) ⇒ InvalidResponse
Returns a new instance of InvalidResponse.
11 12 13 14 15 16 17 |
# File 'lib/customerio/base_client.rb', line 11 def initialize(code, body, response=nil) @message = body @code = code @response = response super(@message) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/customerio/base_client.rb', line 9 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/customerio/base_client.rb', line 9 def response @response end |