Sha256: 6199487242d0890b9280acdfce80bef45c7251c9c8236421ffd20f6790b4f296
Contents?: true
Size: 443 Bytes
Versions: 21
Compression:
Stored size: 443 Bytes
Contents
require 'super_formatter/row' module SuperFormatter module Hct 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
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
super_tools-0.0.1 | lib/super_formatter/hct/row.rb |