Class: Top4R::Area
- Inherits:
-
Object
- Object
- Top4R::Area
- Includes:
- ModelMixin
- Defined in:
- lib/top4r/model/shipping.rb
Overview
Area model
Constant Summary collapse
- @@ATTRIBUTES =
[:id, :area_id, :area_type, :area_name, :parent_id, :zip]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ModelMixin
Class Method Details
.attributes ⇒ Object
9 |
# File 'lib/top4r/model/shipping.rb', line 9 def attributes; @@ATTRIBUTES; end |
.default_public_fields ⇒ Object
11 12 13 |
# File 'lib/top4r/model/shipping.rb', line 11 def default_public_fields ["area_id", "area_type", "area_name", "parent_id", "zip"] end |
Instance Method Details
#unmarshal_other_attrs ⇒ Object
16 17 18 19 |
# File 'lib/top4r/model/shipping.rb', line 16 def unmarshal_other_attrs @id = @area_id self end |