Sha256: 34f75edfeafcdd427eb198b323c4147b70ddd305965b74d005c2917966ba79f9
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
module SuperFormatter module Hct Head = Struct.new(:data) do def indexes @indexes ||= { global_order_id: data.index("訂單號碼") || data.index("清單編號"), mobile: data.index("收貨人電話") || data.index("收貨人電話1"), recipient: data.index("收貨人") || data.index("收貨人名稱"), tracking_code: data.index("查貨號碼") || data.index("十碼貨號") } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
super_tools-3.0.1 | lib/super_formatter/hct/head.rb |