Sha256: e57de371a811d69940370d5e0e421cd62cb2b1f16aaa1338c15b329cbe8ede05

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

module SiebelDonations
  class Contact < Base

    attr_reader :id, :primary, :first_name, :preferred_name, :middle_name, :last_name,
                :title, :sufix, :sex, :phone_numbers, :email_addresses

    def initialize(json)
      super

      @phone_numbers = json['phoneNumbers'].collect { |phone_json| SiebelDonations::PhoneNumber.new(phone_json) } if json['phoneNumbers']
      @email_addresses = json['emailAddresses'].collect { |email_json| SiebelDonations::EmailAddress.new(email_json) } if json['emailAddresses']
    end

  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
siebel_donations-1.0.0 lib/siebel_donations/contact.rb