Exception: Customerio::InvalidResponse

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/customerio/base_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/customerio/base_client.rb', line 9

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/customerio/base_client.rb', line 9

def response
  @response
end