Exception: Skroutz::InvalidResource

Inherits:
SkroutzError
  • Object
show all
Defined in:
lib/skroutz/errors.rb

Overview

Raised when Skroutz can’t parse the response for the resource

Instance Method Summary collapse

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