Exception: GuestyAPI::APIError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ APIError

Returns a new instance of APIError.



19
20
21
22
# File 'lib/guesty_api.rb', line 19

def initialize(msg, code)
  super(msg)
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



17
18
19
# File 'lib/guesty_api.rb', line 17

def code
  @code
end