Class: Faker::Job

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/job.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

.fieldString

Produces a random job field.

Examples:

Faker::Job.field #=> "Banking"

Returns:

  • (String)

Available since:

  • 1.7.0



43
44
45
# File 'lib/faker/default/job.rb', line 43

def field
  fetch('job.field')
end

.key_skillString

Produces a random job skill.

Examples:

Faker::Job.key_skill #=> "Leadership"

Returns:

  • (String)

Available since:

  • 1.7.0



56
57
58
# File 'lib/faker/default/job.rb', line 56

def key_skill
  fetch('job.key_skills')
end

.positionString

Produces a random job position.

Examples:

Faker::Job.position #=> "Strategist"

Returns:

  • (String)

Available since:

  • 1.8.7



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

def position
  fetch('job.position')
end

.titleString

Produces a random job title.

Examples:

Faker::Job.title #=> "Construction Manager"

Returns:

  • (String)

Available since:

  • 1.7.0



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

def title
  parse('job.title')
end