Sha256: 30d7305f3d174f9b69b692c73fa4ba44e6f7ee8cd6c2a9a361b0122d2ea67f6a

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

module Rawbotz
  module LocalShop
    def self.product_page_frontend(product, settings)
      # TODO settings could be memoized
      "#{settings['local_shop']['base_uri']}catalog/product/view/id/#{product.product_id}"
    end
    def self.product_page_backend(product, settings)
      # TODO settings could be memoized
      "#{settings['local_shop']['base_uri']}index.php/rawadmin/catalog_product/edit/id/#{product.product_id}"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rawbotz-0.2.0 lib/rawbotz/local_shop.rb
rawbotz-0.1.5 lib/rawbotz/local_shop.rb
rawbotz-0.1.4 lib/rawbotz/local_shop.rb
rawbotz-0.1.3 lib/rawbotz/local_shop.rb
rawbotz-0.1.2 lib/rawbotz/local_shop.rb