Sha256: 4f748be2c8c00eeac4e208c4a7c9bc734e5c1bbd9cc4b1171c265b1d482bae71

Contents?: true

Size: 474 Bytes

Versions: 21

Compression:

Stored size: 474 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

21 entries across 21 versions & 1 rubygems

Version Path
super_tools-2.1.0 lib/super_formatter/hct/head.rb
super_tools-0.0.26 lib/super_formatter/hct/head.rb
super_tools-0.0.25 lib/super_formatter/hct/head.rb
super_tools-0.0.21 lib/super_formatter/hct/head.rb
super_tools-0.0.20 lib/super_formatter/hct/head.rb
super_tools-0.0.17 lib/super_formatter/hct/head.rb
super_tools-0.0.15 lib/super_formatter/hct/head.rb
super_tools-0.0.14 lib/super_formatter/hct/head.rb
super_tools-0.0.13 lib/super_formatter/hct/head.rb
super_tools-0.0.12 lib/super_formatter/hct/head.rb
super_tools-0.0.11 lib/super_formatter/hct/head.rb
super_tools-0.0.10 lib/super_formatter/hct/head.rb
super_tools-0.0.9 lib/super_formatter/hct/head.rb
super_tools-0.0.8 lib/super_formatter/hct/head.rb
super_tools-0.0.7 lib/super_formatter/hct/head.rb
super_tools-0.0.6 lib/super_formatter/hct/head.rb
super_tools-0.0.5 lib/super_formatter/hct/head.rb
super_tools-0.0.4 lib/super_formatter/hct/head.rb
super_tools-0.0.3 lib/super_formatter/hct/head.rb
super_tools-0.0.2 lib/super_formatter/hct/head.rb