Module: FFaker::JobFR

Extended by:
JobFR, ModuleUtils
Included in:
JobFR
Defined in:
lib/ffaker/job_fr.rb

Constant Summary collapse

JOB_ADJECTIVES =
%w[general adjoint associƩ].freeze

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#titleObject



10
11
12
13
14
15
16
# File 'lib/ffaker/job_fr.rb', line 10

def title
  if rand(0..1).zero?
    "#{fetch_sample(JOB_PREFIXES)} #{fetch_sample(JOB_ADJECTIVES)} #{fetch_sample(JOB_NOUNS)}"
  else
    "#{fetch_sample(JOB_PREFIXES)} #{fetch_sample(JOB_NOUNS)}"
  end
end