Module: FFaker::NameAR

Extended by:
ModuleUtils, NameAR
Included in:
NameAR
Defined in:
lib/ffaker/name_ar.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#first_name_femaleObject


13
14
15
# File 'lib/ffaker/name_ar.rb', line 13

def first_name_female
  fetch_sample(FIRST_NAMES_FEMALE)
end

#first_name_maleObject


9
10
11
# File 'lib/ffaker/name_ar.rb', line 9

def first_name_male
  fetch_sample(FIRST_NAMES_MALE)
end

#last_nameObject


17
18
19
# File 'lib/ffaker/name_ar.rb', line 17

def last_name
  fetch_sample(LAST_NAMES)
end

#name_femaleObject


25
26
27
# File 'lib/ffaker/name_ar.rb', line 25

def name_female
  "#{first_name_female} #{last_name}"
end

#name_maleObject


21
22
23
# File 'lib/ffaker/name_ar.rb', line 21

def name_male
  "#{first_name_male} #{last_name}"
end