Exception: Leadlight::HttpError
- Extended by:
- Forwardable
- Defined in:
- lib/leadlight/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.
13 14 15 16 |
# File 'lib/leadlight/errors.rb', line 13 def initialize(response, =response.status.to_s) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/leadlight/errors.rb', line 9 def response @response end |