Class: Faker::University

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/university.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.greek_alphabetObject


24
25
26
27
# File 'lib/faker/default/university.rb', line 24

def greek_alphabet
  %w[Α B Γ Δ E Z H Θ I K Λ M N Ξ
     O Π P Σ T Y Φ X Ψ Ω]
end

.greek_organizationObject


20
21
22
# File 'lib/faker/default/university.rb', line 20

def greek_organization
  Array.new(3) { |_| sample(greek_alphabet) }.join
end

.nameObject


8
9
10
# File 'lib/faker/default/university.rb', line 8

def name
  parse('university.name')
end

.prefixObject


12
13
14
# File 'lib/faker/default/university.rb', line 12

def prefix
  fetch('university.prefix')
end

.suffixObject


16
17
18
# File 'lib/faker/default/university.rb', line 16

def suffix
  fetch('university.suffix')
end