Module: FFaker::NameRU
Constant Summary
collapse
- FIRST_NAMES =
FIRST_NAMES_MALE + FIRST_NAMES_FEMALE
- LAST_NAMES =
LAST_NAMES_MALE + LAST_NAMES_FEMALE
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#female_name ⇒ Object
23
24
25
|
# File 'lib/ffaker/name_ru.rb', line 23
def female_name
"#{first_name_female} #{last_name_female}"
end
|
#first_name ⇒ Object
15
16
17
|
# File 'lib/ffaker/name_ru.rb', line 15
def first_name
fetch_sample(FIRST_NAMES)
end
|
#first_name_female ⇒ Object
31
32
33
|
# File 'lib/ffaker/name_ru.rb', line 31
def first_name_female
fetch_sample(FIRST_NAMES_FEMALE)
end
|
#first_name_male ⇒ Object
35
36
37
|
# File 'lib/ffaker/name_ru.rb', line 35
def first_name_male
fetch_sample(FIRST_NAMES_MALE)
end
|
#last_name ⇒ Object
19
20
21
|
# File 'lib/ffaker/name_ru.rb', line 19
def last_name
fetch_sample(LAST_NAMES)
end
|
#last_name_female ⇒ Object
47
48
49
|
# File 'lib/ffaker/name_ru.rb', line 47
def last_name_female
fetch_sample(LAST_NAMES_FEMALE)
end
|
#last_name_male ⇒ Object
51
52
53
|
# File 'lib/ffaker/name_ru.rb', line 51
def last_name_male
fetch_sample(LAST_NAMES_MALE)
end
|
#male_name ⇒ Object
27
28
29
|
# File 'lib/ffaker/name_ru.rb', line 27
def male_name
"#{first_name_male} #{last_name_male}"
end
|
#middle_name_female ⇒ Object
39
40
41
|
# File 'lib/ffaker/name_ru.rb', line 39
def middle_name_female
fetch_sample(MIDDLE_NAMES_FEMALE)
end
|
#middle_name_male ⇒ Object
43
44
45
|
# File 'lib/ffaker/name_ru.rb', line 43
def middle_name_male
fetch_sample(MIDDLE_NAMES_MALE)
end
|
#name ⇒ Object
11
12
13
|
# File 'lib/ffaker/name_ru.rb', line 11
def name
rand(0..1).zero? ? female_name : male_name
end
|