Exception: Vertebrae::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Vertebrae::ResponseError
- Defined in:
- lib/vertebrae/response_error.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, response) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(status_code, response) ⇒ ResponseError
Returns a new instance of ResponseError.
7 8 9 10 |
# File 'lib/vertebrae/response_error.rb', line 7 def initialize(status_code, response) @status_code = status_code super((response)) end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/vertebrae/response_error.rb', line 5 def status_code @status_code end |