Sha256: 90f8de319a5be026675af650f46d6fc9e6a9113cad0fb91b4638b69c6359da1f

Contents?: true

Size: 487 Bytes

Versions: 10

Compression:

Stored size: 487 Bytes

Contents

module SiebelDonations
  class Address < Base

    attr_reader :id, :primary, :seasonal, :address1, :address2, :address3, :address4, :city,
                :state, :zip, :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

10 entries across 10 versions & 1 rubygems

Version Path
siebel_donations-1.0.13 lib/siebel_donations/address.rb
siebel_donations-1.0.12 lib/siebel_donations/address.rb
siebel_donations-1.0.11 lib/siebel_donations/address.rb
siebel_donations-1.0.10 lib/siebel_donations/address.rb
siebel_donations-1.0.9 lib/siebel_donations/address.rb
siebel_donations-1.0.8 lib/siebel_donations/address.rb
siebel_donations-1.0.7 lib/siebel_donations/address.rb
siebel_donations-1.0.6 lib/siebel_donations/address.rb
siebel_donations-1.0.5 lib/siebel_donations/address.rb
siebel_donations-1.0.4 lib/siebel_donations/address.rb