Module: Pennylane::ObjectTypes

Defined in:
lib/pennylane/object_types.rb

Class Method Summary collapse

Class Method Details

.object_names_to_classesObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/pennylane/object_types.rb', line 3

def self.object_names_to_classes
  {
    ListObject.object_name => ListObject,
    Category.object_name => Category,
    CategoryGroup.object_name => CategoryGroup,
    Customer.object_name => Customer,
    CustomerInvoice.object_name => CustomerInvoice,
    Product.object_name => Product,
    Supplier.object_name => Supplier
  }.freeze
end