Exception: Redmine::Client::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Redmine::Client::ResponseError
- Defined in:
- lib/redmine/client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
10 11 12 |
# File 'lib/redmine/client.rb', line 10 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/redmine/client.rb', line 9 def response @response end |
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/redmine/client.rb', line 14 def body response.body end |
#message ⇒ Object
18 19 20 |
# File 'lib/redmine/client.rb', line 18 def "Error #{response.status}: #{response.body}" end |