Exception: MensarioApiException
- Inherits:
-
MensarioException
- Object
- Exception
- MensarioException
- MensarioApiException
- Defined in:
- lib/mensario/api_exception.rb
Overview
Exception for raise errors from api
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Response code from API.
Instance Method Summary collapse
-
#initialize(status) ⇒ MensarioApiException
constructor
Initialize the mensario exception class.
Constructor Details
#initialize(status) ⇒ MensarioApiException
Initialize the mensario exception class
9 10 11 |
# File 'lib/mensario/api_exception.rb', line 9 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Response code from API
4 5 6 |
# File 'lib/mensario/api_exception.rb', line 4 def status @status end |