Sha256: 141504aba864a591a0a75fffd39bf5414e80babb062b7648a3b93807ed6cb0ab

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 Bytes

Contents

module Vcard::DirectoryAddress
  def to_vcard
    Vcard.new(
      :given_name     => first_name,
      :family_name    => family_name,
      :street_address => street,
      :postal_code    => zip_code,
      :locality       => city
    )
  end

  def to_vcard_attributes
    {
      :given_name     => first_name,
      :family_name    => family_name,
      :street_address => street,
      :postal_code    => zip_code,
      :locality       => city
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_vcards-0.20.3 app/models/vcard/directory_address.rb
has_vcards-0.20.2 app/models/vcard/directory_address.rb
has_vcards-0.20.1 app/models/vcard/directory_address.rb
has_vcards-0.20.0 app/models/vcard/directory_address.rb
has_vcards-0.19.0 app/models/vcard/directory_address.rb
has_vcards-0.18.0 app/models/vcard/directory_address.rb
has_vcards-0.17.2 app/models/vcard/directory_address.rb
has_vcards-0.17.1 app/models/vcard/directory_address.rb