Class: Top4R::ItemCat

Inherits:
Object
  • Object
show all
Includes:
ModelMixin
Defined in:
lib/top4r/model/itemcat.rb

Overview

ItemCat model

Constant Summary collapse

@@ATTRIBUTES =
[:cid, :parent_cid, :name, :is_parent, :status, :sort_order]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ModelMixin

included

Class Method Details

.attributesObject



10
# File 'lib/top4r/model/itemcat.rb', line 10

def attributes; @@ATTRIBUTES; end

.default_public_fieldsObject



12
13
14
# File 'lib/top4r/model/itemcat.rb', line 12

def default_public_fields
  ["cid", "name", "parent_cid", "is_parent"]
end

Instance Method Details

#unmarshal_other_attrsObject



17
18
19
# File 'lib/top4r/model/itemcat.rb', line 17

def unmarshal_other_attrs
  self
end