Exception: Viglink::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Viglink::APIError
- Defined in:
- lib/viglink/api_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, body:) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(status:, body:) ⇒ APIError
Returns a new instance of APIError.
7 8 9 10 |
# File 'lib/viglink/api_error.rb', line 7 def initialize(status:, body:) @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/viglink/api_error.rb', line 5 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/viglink/api_error.rb', line 5 def status @status end |