Exception: Keymaker::HttpError
- Extended by:
- Forwardable
- Defined in:
- lib/keymaker/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, message = response.status.to_s) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(response, message = response.status.to_s) ⇒ HttpError
Returns a new instance of HttpError.
12 13 14 15 |
# File 'lib/keymaker/errors.rb', line 12 def initialize(response, =response.status.to_s) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/keymaker/errors.rb', line 8 def response @response end |