Class: Magento::CategoryAttribute

Inherits:
Base
  • Object
show all
Defined in:
lib/magento/category_attribute.rb

Overview

www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute 100 Requested store view not found. 101 Requested attribute not found.

Instance Attribute Summary

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Base::ClassMethods

#commit

Methods included from Base::InstanceMethods

#id, #id=, #initialize, #method_missing, #object_attributes=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Magento::Base::InstanceMethods

Class Method Details

.current_store(*args) ⇒ Object

catalog_category_attribute.currentStore Set/Get current store view

Return: int

Arguments:

mixed storeView - Store view ID or code. (optional)



26
27
28
# File 'lib/magento/category_attribute.rb', line 26

def current_store(*args)
  commit("currentStore", *args)
end

.listObject

catalog_category_attribute.list Retrieve category attributes

Return: array



11
12
13
14
15
16
# File 'lib/magento/category_attribute.rb', line 11

def list
  results = commit("list", nil)
  results.collect do |result|
    new(result)
  end
end

.options(*args) ⇒ Object

catalog_category_attribute.options Retrieve attribute options

Arguments:

attributeId - attribute id or code storeView - store view id or code



37
38
39
# File 'lib/magento/category_attribute.rb', line 37

def options(*args)
  commit("options", *args)
end