Exception: PandaGo::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/pandago/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message }")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



17
18
19
# File 'lib/pandago/errors.rb', line 17

def response
  @response
end