class PrestaShop::Requestor::Image

Public Instance Methods

find(*path) click to toggle source
# File lib/presta_shop/requestor/image.rb, line 6
def find(*path)
  Raise NotImplementedError
  # this one should raise exception if the response is not an image file
  get(*path)
end
list(*path) click to toggle source
# File lib/presta_shop/requestor/image.rb, line 12
def list(*path)
  Raise NotImplementedError
  get(*args)
  Nokogiri::XML(api.client[:images].get.body).xpath("/prestashop/image_types/*").collect(&:name)
end

Private Instance Methods

get(*args) click to toggle source
# File lib/presta_shop/requestor/image.rb, line 20
def get(*args)
  api.get(self.resource_name, *args)
end