Class: Top4R::LogisticCompany

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

Overview

LogisticCompany model

Constant Summary collapse

@@ATTRIBUTES =
[:id, :company_id, :company_code, :company_name]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ModelMixin

included

Class Method Details

.attributesObject



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

def attributes; @@ATTRIBUTES; end

.default_public_fieldsObject



31
32
33
# File 'lib/top4r/model/shipping.rb', line 31

def default_public_fields
  ["company_id", "company_code", "company_name"]
end

Instance Method Details

#unmarshal_other_attrsObject



36
37
38
39
# File 'lib/top4r/model/shipping.rb', line 36

def unmarshal_other_attrs
  @id = @company_id
  self
end