Exception: Onesky::Errors::OneskyError
- Inherits:
-
StandardError
- Object
- StandardError
- Onesky::Errors::OneskyError
- Defined in:
- lib/onesky/errors.rb
Direct Known Subclasses
BadRequestError, ForbiddenError, InternalServerError, MethodNotAllowedError, NotFoundError, UnauthorizedError
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(resp) ⇒ OneskyError
constructor
A new instance of OneskyError.
Constructor Details
#initialize(resp) ⇒ OneskyError
Returns a new instance of OneskyError.
6 7 8 |
# File 'lib/onesky/errors.rb', line 6 def initialize(resp) @response = resp end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/onesky/errors.rb', line 5 def response @response end |