Class: Magento::ProductType

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

Overview

Instance Attribute Summary

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Base::ClassMethods

#api_path, #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

.listObject

catalog_product_type.list Retrieve product types

Return: array



9
10
11
12
13
14
# File 'lib/magento/product_type.rb', line 9

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