Exception: PandaGo::RequestError
- Defined in:
- lib/pandago/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
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.
19 20 21 22 |
# File 'lib/pandago/errors.rb', line 19 def initialize(response) @response = response super("#{ response.code } #{ response. }") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
17 18 19 |
# File 'lib/pandago/errors.rb', line 17 def response @response end |