Sha256: 43d1583fbf235f2f7cdc17027ee14a74dbe87554602df9d45d04a2d97fd72fe8

Contents?: true

Size: 1.15 KB

Versions: 27

Compression:

Stored size: 1.15 KB

Contents

module Magento
  # http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_product_attribute
  # 100  Requested store view not found.
  # 101  Requested attribute not found.
  class ProductAttribute < Base
    class << self
      # catalog_product_attribute.list
      # Retrieve attribute list
      # 
      # Return: array
      # 
      # Arguments:
      # 
      # int setId - attribute set ID
      def list(*args)
        results = commit("list", *args)
        results.collect do |result|
          new(result)
        end
      end

      # catalog_product_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_product_attribute.options
      # Retrieve attribute options
      # 
      # Return: array
      # 
      # Arguments:
      # 
      # mixed attributeId - attribute ID or code
      # mixed storeView - store view ID or code (optional)
      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/product_attribute.rb
magentor-0.3.0 lib/magento/product_attribute.rb
magentor-0.2.18 lib/magento/product_attribute.rb
magentor-0.2.17 lib/magento/product_attribute.rb
magentor-0.2.16 lib/magento/product_attribute.rb
magentor-0.2.15 lib/magento/product_attribute.rb
magentor-0.2.14 lib/magento/product_attribute.rb
magentor-0.2.13 lib/magento/product_attribute.rb
magentor-0.2.12 lib/magento/product_attribute.rb
magentor-0.2.11 lib/magento/product_attribute.rb
magentor-0.2.10 lib/magento/product_attribute.rb
magentor-0.2.9 lib/magento/product_attribute.rb
magentor-0.2.8 lib/magento/product_attribute.rb
magentor-0.2.7 lib/magento/product_attribute.rb
magentor-0.2.6 lib/magento/product_attribute.rb
magentor-0.2.5 lib/magento/product_attribute.rb
magentor-0.2.4 lib/magento/product_attribute.rb
magentor-0.2.3 lib/magento/product_attribute.rb
magentor-0.2.2 lib/magento/product_attribute.rb
magentor-0.2.1 lib/magento/product_attribute.rb