Skip to content

mlightner/has_phone_numbers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

has_phone_numbers

has_phone_numbers demonstrates a reference implementation for handling phone numbers.

Resources

API

Bugs

Development

Source

  • git://github.com/pluginaweek/has_phone_numbers.git

Description

A phone number is a simple model whose data and functionality should be standardized across multiple applications. Phone numbers are minimialistic in terms of the type of data required and follows the standard U.S. format. Support for international formats may be added in the future.

Usage

Note that this is a reference implementation and, most likely, should be modified for your own usage.

Example

phone_number = Phone_number.new(
  :country_code => '1',
  :number => '1234567890',
  :extension => '123'
)
phone_number.display_value # => 1- 1234567890 ext. 123

Testing

Before you can run any tests, the following gem must be installed:

To run against a specific version of Rails:

rake test RAILS_FRAMEWORK_ROOT=/path/to/rails

Dependencies

  • Rails 2.1 or later

  • plugins_plus (optional if app files are copied to your project tree)

About

Demonstrates a reference implementation for handling phone numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%