Exception: AruxApp::API::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AruxApp::API::Error
- Defined in:
- lib/arux_app/api.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
45 46 47 48 49 50 51 52 53 |
# File 'lib/arux_app/api.rb', line 45 def initialize(code, ) self.http_status_code = code.to_i begin self.json = JSON.parse() rescue end super "(#{code}) #{}" end |
Instance Attribute Details
#http_status_code ⇒ Object
Returns the value of attribute http_status_code.
44 45 46 |
# File 'lib/arux_app/api.rb', line 44 def http_status_code @http_status_code end |