Sha256: e7887b0ebc69d5981a5ce9cfba0741bcb87c2ab9218324751aeef01579d1a425

Contents?: true

Size: 299 Bytes

Versions: 21

Compression:

Stored size: 299 Bytes

Contents

module SuperFormatter
  module Ecan
    Head = Struct.new(:data) do
      def indexes
        @indexes ||= {
          global_order_id: 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/ecan/head.rb