Sha256: c95596edfabfa8ce2999d87971828301063efcd66c478b2c7851eacb0039160c
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
require 'magento_remote' module Rawbotz def self.mech settings = (YAML.load_file Rawbotz.conf_file_path)["remote_shop"] mech = MagentoMech.new settings["base_uri"] mech.pass = settings["pass"] mech.user = settings["user"] mech.login mech end def self.attribute_ids @@attribute_ids ||= (YAML.load_file Rawbotz.conf_file_path)["attribute_ids"] end module RemoteShop def self.product_page_url(product, settings) # settings could be memoized "#{settings['remote_shop']['base_uri']}catalog/product/view/id/#{product.product_id}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rawbotz-0.1.5 | lib/rawbotz/remote_shop.rb |
rawbotz-0.1.4 | lib/rawbotz/remote_shop.rb |
rawbotz-0.1.3 | lib/rawbotz/remote_shop.rb |
rawbotz-0.1.2 | lib/rawbotz/remote_shop.rb |