Exception: Skroutz::InvalidResource
- Inherits:
-
SkroutzError
- Object
- StandardError
- SkroutzError
- Skroutz::InvalidResource
- Defined in:
- lib/skroutz/errors.rb
Overview
Raised when Skroutz can’t parse the response for the resource
Instance Method Summary collapse
-
#initialize(resource, body) ⇒ InvalidResource
constructor
A new instance of InvalidResource.
Constructor Details
#initialize(resource, body) ⇒ InvalidResource
Returns a new instance of InvalidResource.
23 24 25 |
# File 'lib/skroutz/errors.rb', line 23 def initialize(resource, body) super %(resource: #{resource}, body: "#{body}") end |