Class: Faker::SouthAfrica

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/south_africa.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.cell_phoneObject


24
25
26
27
28
# File 'lib/faker/default/south_africa.rb', line 24

def cell_phone
  with_locale 'en-ZA' do
    Faker::PhoneNumber.cell_phone
  end
end

.close_corporation_registration_numberObject


34
35
36
# File 'lib/faker/default/south_africa.rb', line 34

def close_corporation_registration_number
  Faker::Company.south_african_close_corporation_registration_number
end

.id_numberObject


6
7
8
# File 'lib/faker/default/south_africa.rb', line 6

def id_number
  Faker::IDNumber.south_african_id_number
end

.invalid_id_numberObject


14
15
16
# File 'lib/faker/default/south_africa.rb', line 14

def invalid_id_number
  Faker::IDNumber.invalid_south_african_id_number
end

.listed_company_registration_numberObject


38
39
40
# File 'lib/faker/default/south_africa.rb', line 38

def listed_company_registration_number
  Faker::Company.south_african_listed_company_registration_number
end

.phone_numberObject


18
19
20
21
22
# File 'lib/faker/default/south_africa.rb', line 18

def phone_number
  with_locale 'en-ZA' do
    Faker::PhoneNumber.phone_number
  end
end

.pty_ltd_registration_numberObject


30
31
32
# File 'lib/faker/default/south_africa.rb', line 30

def pty_ltd_registration_number
  Faker::Company.south_african_pty_ltd_registration_number
end

.trust_registration_numberObject


42
43
44
# File 'lib/faker/default/south_africa.rb', line 42

def trust_registration_number
  Faker::Company.south_african_trust_registration_number
end

.valid_id_numberObject


10
11
12
# File 'lib/faker/default/south_africa.rb', line 10

def valid_id_number
  Faker::IDNumber.valid_south_african_id_number
end

.vat_numberObject


46
47
48
# File 'lib/faker/default/south_africa.rb', line 46

def vat_number
  Faker::Finance.vat_number('ZA')
end