Exception: EzClient::ResponseStatusError
- Inherits:
-
StandardError
- Object
- StandardError
- EzClient::ResponseStatusError
- Defined in:
- lib/ezclient/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseStatusError
constructor
A new instance of ResponseStatusError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseStatusError
Returns a new instance of ResponseStatusError.
7 8 9 10 |
# File 'lib/ezclient/errors.rb', line 7 def initialize(response) self.response = response super end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/ezclient/errors.rb', line 5 def response @response end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/ezclient/errors.rb', line 12 def "Bad response code: #{response.code}" end |