Sha256: 6b54accdfdbdf69693749438f87e4c1096ff43230ec9d33d8c5cbb3b50003dc0

Contents?: true

Size: 1.03 KB

Versions: 27

Compression:

Stored size: 1.03 KB

Contents

module Magento
  # http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute
  # 100  Requested store view not found.
  # 101  Requested attribute not found.
  class CategoryAttribute < Base
    class << self
      # catalog_category_attribute.list
      # Retrieve category attributes
      # 
      # Return: array
      def list
        results = commit("list", nil)
        results.collect do |result|
          new(result)
        end
      end

      # catalog_category_attribute.currentStore
      # Set/Get current store view
      # 
      # Return: int
      # 
      # Arguments:
      # 
      # mixed storeView - Store view ID or code. (optional)
      def current_store(*args)
        commit("currentStore", *args)
      end

      # catalog_category_attribute.options
      # Retrieve attribute options
      # 
      # Arguments:
      # 
      # attributeId - attribute id or code
      # storeView - store view id or code
      def options(*args)
        commit("options", *args)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
magentor-0.3.1 lib/magento/category_attribute.rb
magentor-0.3.0 lib/magento/category_attribute.rb
magentor-0.2.18 lib/magento/category_attribute.rb
magentor-0.2.17 lib/magento/category_attribute.rb
magentor-0.2.16 lib/magento/category_attribute.rb
magentor-0.2.15 lib/magento/category_attribute.rb
magentor-0.2.14 lib/magento/category_attribute.rb
magentor-0.2.13 lib/magento/category_attribute.rb
magentor-0.2.12 lib/magento/category_attribute.rb
magentor-0.2.11 lib/magento/category_attribute.rb
magentor-0.2.10 lib/magento/category_attribute.rb
magentor-0.2.9 lib/magento/category_attribute.rb
magentor-0.2.8 lib/magento/category_attribute.rb
magentor-0.2.7 lib/magento/category_attribute.rb
magentor-0.2.6 lib/magento/category_attribute.rb
magentor-0.2.5 lib/magento/category_attribute.rb
magentor-0.2.4 lib/magento/category_attribute.rb
magentor-0.2.3 lib/magento/category_attribute.rb
magentor-0.2.2 lib/magento/category_attribute.rb
magentor-0.2.1 lib/magento/category_attribute.rb