Class: CzFaker::PhoneNumber

Inherits:
Base
  • Object
show all
Defined in:
lib/cz_faker/phone_number.rb

Class Method Summary collapse

Methods inherited from Base

sample_data

Class Method Details

.cellObject



5
6
7
# File 'lib/cz_faker/phone_number.rb', line 5

def cell
  CzFaker::Data::CELL_PREFIXES.sample + Number.integer(6)
end

.cell_prefixObject



29
30
31
# File 'lib/cz_faker/phone_number.rb', line 29

def cell_prefix
  CzFaker::Data::CELL_PREFIXES.sample
end

.country_prefixObject



25
26
27
# File 'lib/cz_faker/phone_number.rb', line 25

def country_prefix
  CzFaker::Data::COUNTRY_PREFIX.sample
end

.free_lineObject



13
14
15
# File 'lib/cz_faker/phone_number.rb', line 13

def free_line
  CzFaker::Data::FREE_LINE_PREFIXES.sample + Number.integer(6)
end

.free_prefixObject



37
38
39
# File 'lib/cz_faker/phone_number.rb', line 37

def free_prefix
  CzFaker::Data::FREE_LINE_PREFIXES.sample
end

.international_cellObject



17
18
19
# File 'lib/cz_faker/phone_number.rb', line 17

def international_cell
  [CzFaker::Data::COUNTRY_PREFIX[0], cell].join("")
end

.international_land_lineObject



21
22
23
# File 'lib/cz_faker/phone_number.rb', line 21

def international_land_line
  [CzFaker::Data::COUNTRY_PREFIX[0], land_line].join("")
end

.land_lineObject



9
10
11
# File 'lib/cz_faker/phone_number.rb', line 9

def land_line
  CzFaker::Data::LAND_LINE_PREFIXES.sample + Number.integer(6)
end

.land_line_prefixObject



33
34
35
# File 'lib/cz_faker/phone_number.rb', line 33

def land_line_prefix
  CzFaker::Data::LAND_LINE_PREFIXES.sample
end