Class: Faker::University
Constant Summary
Constants inherited from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary collapse
- .greek_alphabet ⇒ Object
- .greek_organization ⇒ Object
- .name ⇒ Object
- .prefix ⇒ Object
- .suffix ⇒ Object
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, 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 ['Α', '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 3.times.map { |_| 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 |