Module: HasVcards

Defined in:
lib/has_vcards.rb,
lib/has_vcards/engine.rb,
lib/has_vcards/version.rb,
app/models/has_vcards/vcard.rb,
app/models/has_vcards/address.rb,
app/models/has_vcards/phone_number.rb,
app/input/has_vcards/zip_locality_input.rb,
app/helpers/has_vcards/application_helper.rb,
app/models/has_vcards/concerns/has_vcards.rb,
app/controllers/has_vcards/vcards_controller.rb,
app/models/has_vcards/vcard/directory_lookup.rb,
app/models/has_vcards/vcard/directory_address.rb,
app/controllers/has_vcards/phone_numbers_controller.rb,
app/controllers/has_vcards/directory_lookup_controller.rb

Overview

Phone Number / Contact model

This model holds a contact for a Vcard. It is called PhoneNumber in compliance with the vCard spec, but can hold any kind of contact like mobile phone, email, or homepage.

There can be multiple phone numbers be assigned to a vcard, where they are available as the #contacts association.

The #label method uses the I18n locales to translate the phone_number_type. You may add additional ones in under the ‘activerecord.attributes.has_vcards/phone_number.phone_number_type_enum’ scope.

Defined Under Namespace

Modules: ApplicationHelper, Concerns Classes: Address, DirectoryLookupController, Engine, PhoneNumber, PhoneNumbersController, Vcard, VcardsController, ZipLocalityInput

Constant Summary collapse

VERSION =
'1.1.2'