Skip to content

Commit

Permalink
Merge 269a874 into 11e3d32
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwetzel committed May 14, 2021
2 parents 11e3d32 + 269a874 commit ed6f5ce
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
@@ -1,4 +1,6 @@
[![Code Climate](https://codeclimate.com/github/mobi/telephone_number/badges/gpa.svg)](https://codeclimate.com/github/mobi/telephone_number) [![Coverage Status](https://coveralls.io/repos/github/mobi/telephone_number/badge.svg)](https://coveralls.io/github/mobi/telephone_number)
[![Build Status](https://travis-ci.org/mobi/telephone_number.svg?branch=master)](https://travis-ci.org/mobi/telephone_number)
[![Code Climate](https://codeclimate.com/github/mobi/telephone_number/badges/gpa.svg)](https://codeclimate.com/github/mobi/telephone_number)
[![Coverage Status](https://coveralls.io/repos/github/mobi/telephone_number/badge.svg)](https://coveralls.io/github/mobi/telephone_number)

# What is it?

Expand Down Expand Up @@ -64,15 +66,15 @@ phone_object = TelephoneNumber.parse("3175082237", :us) ==>
@country=:US,
@e164_number="13175083348",
@national_number="3175083348",
@original_number="3175083348">
@original_number="3175083348">
```
After that you have the following instance methods available to you.

- ### `valid_types`

Returns all types that the number is considered valid for.

`phone_object.valid_types ==> [:fixed_line, :mobile, :toll_free]`
`phone_object.valid_types ==> [:fixed_line, :mobile, :toll_free]`

- ### `valid?`

Expand Down Expand Up @@ -117,10 +119,10 @@ After that you have the following instance methods available to you.
`phone_object.location ==> "Indiana"`

`phone_object.location(:ja) ==> "ソウル特別市"`

- ### `timezone`

Returns the time zone of the number.
Returns the time zone of the number.

`phone_object.timezone ==> "America/New_York"`

Expand Down

0 comments on commit ed6f5ce

Please sign in to comment.