Sha256: dc038c1849f7bdb6842e90e718452f705a9f82fe1814dd8a1c1d3e03a82cfafc

Contents?: true

Size: 345 Bytes

Versions: 21

Compression:

Stored size: 345 Bytes

Contents

module SuperFormatter
  module Tcat
    Head = Struct.new(:data) do
      def indexes
        @indexes ||= {
          global_order_id: data.index('訂單編號'),
          mobile: data.index('手機(收)'),
          recipient: data.index('收件人'),
          tracking_code: data.index('託運單號')
        }
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
super_tools-0.0.1 lib/super_formatter/tcat/head.rb