Exception: Multiapi::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/multiapi.rb,
lib/multiapi/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Error

Returns a new instance of Error.



65
66
67
68
# File 'lib/multiapi/client.rb', line 65

def initialize(response)
  @response = response
  super(build_error_message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



63
64
65
# File 'lib/multiapi/client.rb', line 63

def response
  @response
end