Class: Faker::University

Inherits:
Base
  • Object
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, sample, shuffle, translate, unique, with_locale

Class Method Details

.greek_alphabetObject


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_organizationObject


18
19
20
# File 'lib/faker/university.rb', line 18

def greek_organization
  3.times.map { |_| sample(greek_alphabet) }.join
end

.nameObject


6
7
8
# File 'lib/faker/university.rb', line 6

def name
  parse('university.name')
end

.prefixObject


10
11
12
# File 'lib/faker/university.rb', line 10

def prefix
  fetch('university.prefix')
end

.suffixObject


14
15
16
# File 'lib/faker/university.rb', line 14

def suffix
  fetch('university.suffix')
end