Class: Faker::University
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.greek_alphabet ⇒ Array
Produces a greek alphabet.
-
.greek_organization ⇒ String
Produces a random greek organization.
-
.name ⇒ String
Produces a random university name.
-
.prefix ⇒ String
Produces a random university prefix.
-
.suffix ⇒ String
Produces a random university suffix.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.greek_alphabet ⇒ Array
Produces a greek alphabet.
69 70 71 72 |
# File 'lib/faker/default/university.rb', line 69 def greek_alphabet %w[Α B Γ Δ E Z H Θ I K Λ M N Ξ O Π P Σ T Y Φ X Ψ Ω] end |
.greek_organization ⇒ String
Produces a random greek organization.
56 57 58 |
# File 'lib/faker/default/university.rb', line 56 def greek_organization Array.new(3) { |_| sample(greek_alphabet) }.join end |
.name ⇒ String
Produces a random university name.
17 18 19 |
# File 'lib/faker/default/university.rb', line 17 def name parse('university.name') end |
.prefix ⇒ String
Produces a random university prefix.
30 31 32 |
# File 'lib/faker/default/university.rb', line 30 def prefix fetch('university.prefix') end |
.suffix ⇒ String
Produces a random university suffix.
43 44 45 |
# File 'lib/faker/default/university.rb', line 43 def suffix fetch('university.suffix') end |