Sha256: ea4dbefc1a580640d4415c7d9bb858013215f121ea4aa43884d42e881401032d

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

module SiebelDonations
  class Address < Base

    attr_reader :id, :primary, :seasonal, :address1, :address2, :address3, :address4, :city,
                :state, :zip, :country, :updated_at


    def type
      case @type.to_s.downcase
      when '', 'mailing address', 'ship to', 'ma', 'mailng', 'm', 'billing', 'mailin', 'mailig',
           'mailing', 'maling', 'mailign', 'mailingf', 'naukubg', 'maiiling', 'shipping'
        'Mailing'
      else
        @type
      end
    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
siebel_donations-1.0.15 lib/siebel_donations/address.rb
siebel_donations-1.0.14 lib/siebel_donations/address.rb