Class: Top4R::Shipping

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ModelMixin

included

Class Method Details

.attributesObject



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

def attributes; @@ATTRIBUTES; end

Instance Method Details

#unmarshal_other_attrsObject



66
67
68
69
70
71
72
73
74
# File 'lib/top4r/model/shipping.rb', line 66

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