Sha256: 89a066e1ce89aa43330ffd64731ea9d7c0ea4988bf4716ab29dd00bc5a062904
Contents?: true
Size: 362 Bytes
Versions: 6
Compression:
Stored size: 362 Bytes
Contents
class PhoneNumber < ActiveRecord::Base attr_protected :created_at, :updated_at has_contact def summary_line "#{description} : #{phone_number}" end def eql_to?(phone) self.phone_number.reverse.gsub(/[^0-9]/,"")[0..9] == phone.reverse.gsub(/[^0-9]/,"")[0..9] end def to_label "#{description} : #{phone_number}" end end
Version data entries
6 entries across 6 versions & 1 rubygems