Class: Faker::Educator

Inherits:
Base
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/faker/default/educator.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

.campusObject


33
34
35
# File 'lib/faker/default/educator.rb', line 33

def campus
  "#{parse('educator.name')} Campus"
end

.course_nameObject


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

def course_name
  "#{fetch('educator.tertiary.degree.subject')} #{numerify(fetch('educator.tertiary.degree.course_number'))}"
end

.degreeObject Also known as: course


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

def degree
  "#{fetch('educator.tertiary.degree.type')} #{fetch('educator.tertiary.degree.subject')}"
end

.secondary_schoolObject


29
30
31
# File 'lib/faker/default/educator.rb', line 29

def secondary_school
  "#{parse('educator.name')} #{fetch('educator.secondary')}"
end

.subjectObject


21
22
23
# File 'lib/faker/default/educator.rb', line 21

def subject
  fetch('educator.tertiary.degree.subject')
end

.universityObject


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

def university
  "#{parse('educator.name')} #{fetch('educator.tertiary.type')}"
end