Class: Top4R::Area

Inherits:
Object
  • Object
show all
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

included

Class Method Details

.attributesObject



9
# File 'lib/top4r/model/shipping.rb', line 9

def attributes; @@ATTRIBUTES; end

.default_public_fieldsObject



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_attrsObject



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

def unmarshal_other_attrs
  @id = @area_id
  self
end