Class: Top4R::Shipping
- Inherits:
-
Object
- Object
- Top4R::Shipping
- Includes:
- ModelMixin
- Defined in:
- lib/top4r/model/shipping.rb
Overview
Shipping model
Constant Summary collapse
- @@ATTRIBUTES =
[:id, :tid, :seller_nick, :buyer_nick, :delivery_start, :delivery_end, :out_sid, :item_title, :receiver_name, :receiver_phone, :receiver_mobile, :receiver_location, :status, :type, :freight_payer, :seller_confirm, :company_name, :is_success, :created, :modified]
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ModelMixin
Class Method Details
.attributes ⇒ Object
54 |
# File 'lib/top4r/model/shipping.rb', line 54 def attributes; @@ATTRIBUTES; end |
Instance Method Details
#unmarshal_other_attrs ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'lib/top4r/model/shipping.rb', line 57 def unmarshal_other_attrs @id = @out_sid if @receiver_location && @receiver_location.size > 0 @receiver_location = Location.new(@receiver_location) else @receiver_location = nil end self end |