Exception: GuestyAPI::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- GuestyAPI::APIError
- Defined in:
- lib/guesty_api.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ APIError
constructor
A new instance of APIError.
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
#code ⇒ Object
Returns the value of attribute code.
17 18 19 |
# File 'lib/guesty_api.rb', line 17 def code @code end |