Class: Magento::CustomerGroup

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

Overview

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

.listObject

customer_group.list Retrieve customer groups

Return: array



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

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