Exception: GDocsAPIWrapper::RequestError
- Defined in:
- lib/gdocsapi-wrapper/base.rb
Overview
Base error class for errors raised by the GDocs API
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
32 33 34 35 |
# File 'lib/gdocsapi-wrapper/base.rb', line 32 def initialize(response) @response = response super "request error #{response.status_code}: #{response.body}" end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
30 31 32 |
# File 'lib/gdocsapi-wrapper/base.rb', line 30 def response @response end |