class SuperFormatter::Tcat::Row

Public Instance Methods

mobile() click to toggle source
# File lib/super_formatter/tcat/row.rb, line 10
def mobile
  @mobile ||= begin
    text = (find(:mobile) || "").gsub("'", "")
    if text[0] == '9' && text.length == 9
      "0#{text}"
    else
      text
    end
  end
end
tracking_code() click to toggle source
# File lib/super_formatter/tcat/row.rb, line 6
def tracking_code
  (find(:tracking_code) || "").gsub("'", '')
end