Sha256: d06d1e5b7d4d2f37373d32a558de9dfd3f0df6f870e999dd0fec46c236284a43

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

require "super_formatter/row"

module SuperFormatter
  module Tcat
    class Row < ::SuperFormatter::Row

      def tracking_code
        (find(:tracking_code) || "").gsub("'", "")
      end

      def mobile
        @mobile ||= begin
          text = (find(:mobile) || "").gsub("'", "")
          if text[0] == "9" && text.length == 9
            "0#{text}"
          else
            text
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
super_tools-3.0.1 lib/super_formatter/tcat/row.rb