Fone

Installation

Add this line to your application's Gemfile:

gem 'fone'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fone

Usage

# state abbreviation from area code
Fone::AreaCode[706].state_abbreviation
=> "GA"

Fone::AreaCode[716].state_abbreviation
=> "NY"


# state abbreviation from phone number
Fone::PhoneNumber.new("706-555-4444").area_code.state_abbreviation
=> "GA"

Development

Run tests with bundle exec rspec spec

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request