Method: Faker::PhoneNumber.cell_phone

Defined in:
lib/faker/default/phone_number.rb

.cell_phoneString

Produces a random cell phone number in a random format without the country code and it can have different dividers.

Examples:

Faker::PhoneNumber.cell_phone #=> "(836) 115-8995"
Faker::PhoneNumber.cell_phone #=> "382-597-5739"
Faker::PhoneNumber.cell_phone #=> "316.828.1822"

Returns:

  • (String)

Available since:

  • 1.0.0



32
33
34
# File 'lib/faker/default/phone_number.rb', line 32

def cell_phone
  parse('cell_phone.formats')
end