Class: Faker::University
- Inherits:
-
Base
- Object
- Base
- Faker::University
show all
- Defined in:
- lib/faker/university.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.greek_alphabet ⇒ Object
22
23
24
25
|
# File 'lib/faker/university.rb', line 22
def greek_alphabet
%w[Α B Γ Δ E Z H Θ I K Λ M N Ξ
O Π P Σ T Y Φ X Ψ Ω]
end
|
.greek_organization ⇒ Object
18
19
20
|
# File 'lib/faker/university.rb', line 18
def greek_organization
Array.new(3) { |_| sample(greek_alphabet) }.join
end
|
.name ⇒ Object
6
7
8
|
# File 'lib/faker/university.rb', line 6
def name
parse('university.name')
end
|
.prefix ⇒ Object
10
11
12
|
# File 'lib/faker/university.rb', line 10
def prefix
fetch('university.prefix')
end
|
.suffix ⇒ Object
14
15
16
|
# File 'lib/faker/university.rb', line 14
def suffix
fetch('university.suffix')
end
|