Exception: Rixi::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rixi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, response = nil) ⇒ APIError

Returns a new instance of APIError.



9
10
11
12
# File 'lib/rixi.rb', line 9

def initialize(msg, response = nil)
  super(msg)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/rixi.rb', line 8

def response
  @response
end