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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request