Sha256: ebe6b483f830fe6d533b012bb707e1728289a2e464ad50384f3f7ceba092eb4e
Contents?: true
Size: 410 Bytes
Versions: 6
Compression:
Stored size: 410 Bytes
Contents
class PostalAddress < ActiveRecord::Base has_contact belongs_to :geo_country belongs_to :geo_zone def summary_line "#{description} : #{address_line_1}, #{city}" end def to_label "#{description} : #{address_line_1}, #{city}" end def zip_eql_to?(zip) self.zip.downcase.gsub(/[^a-zA-Z0-9]/, "")[0..4] == zip.to_s.downcase.gsub(/[^a-zA-Z0-9]/,"")[0..4] end end
Version data entries
6 entries across 6 versions & 1 rubygems