Class: Faker::Educator

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

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

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

.campusString

Produces a campus name.

Examples:

Faker::Educator.campus #=> "Vertapple Campus"

Returns:

  • (String)

Available since:

  • 1.6.4



97
98
99
# File 'lib/faker/default/educator.rb', line 97

def campus
  parse('educator.campus')
end

.course_nameString

Produces a course name.

Examples:

Faker::Educator.course_name #=> "Criminology 101"

Returns:

  • (String)

Available since:

  • 1.9.2



58
59
60
# File 'lib/faker/default/educator.rb', line 58

def course_name
  numerify(parse('educator.course_name'))
end

.degreeString Also known as: course

Produces a university degree.

Examples:

Faker::Educator.degree #=> "Associate Degree in Criminology"

Returns:

  • (String)

Available since:

  • 1.9.2



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

def degree
  parse('educator.degree')
end

.primary_schoolString

Produces a primary school.

Examples:

Faker::Educator.primary_school #=> "Brighthurst Elementary School"

Returns:

  • (String)

Available since:

  • next



84
85
86
# File 'lib/faker/default/educator.rb', line 84

def primary_school
  parse('educator.primary_school')
end

.secondary_schoolString

Produces a secondary school.

Examples:

Faker::Educator.secondary_school #=> "Iceborough Secondary College"

Returns:

  • (String)

Available since:

  • 1.6.4



71
72
73
# File 'lib/faker/default/educator.rb', line 71

def secondary_school
  parse('educator.secondary_school')
end

.subjectString

Produces a university subject.

Examples:

Faker::Educator.subject #=> "Criminology"

Returns:

  • (String)

Available since:

  • 1.9.2



45
46
47
# File 'lib/faker/default/educator.rb', line 45

def subject
  fetch('educator.subject')
end

.universityString

Produces a university name.

Examples:

Faker::Educator.university #=> "Mallowtown Technical College"

Returns:

  • (String)

Available since:

  • 1.6.4



17
18
19
# File 'lib/faker/default/educator.rb', line 17

def university
  parse('educator.university')
end