Sha256: 8153289f958d0b64d544b2b109e7b4a975bb5c44beb0dabb8d5c28a244d62bea

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

class Ppl::Entity::Contact

  attr_accessor :id
  attr_accessor :name
  attr_accessor :email_addresses
  attr_accessor :birthday
  attr_accessor :phone_number
  attr_accessor :organization
  attr_accessor :postal_address
  attr_accessor :urls

  def initialize
    @email_addresses = []
    @urls = []
  end

  def set_postal_address
    if @postal_address.nil?
      @postal_address = Ppl::Entity::PostalAddress.new
    end
    yield @postal_address
  end

  def has_email_address?(email_address)
    @email_addresses.include? email_address
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ppl-1.9.0 lib/ppl/entity/contact.rb
ppl-1.8.0 lib/ppl/entity/contact.rb