Module: FFaker::Skill

Extended by:
ModuleUtils, Skill
Included in:
Skill
Defined in:
lib/ffaker/skill.rb

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

#specialties(num = 3) ⇒ Object



20
21
22
# File 'lib/ffaker/skill.rb', line 20

def specialties(num = 3)
  (1..num).map { specialty }
end

#specialtyObject



16
17
18
# File 'lib/ffaker/skill.rb', line 16

def specialty
  "#{fetch_sample(SPECIALTY_START)} #{fetch_sample(SPECIALTY_END)}"
end

#tech_skillObject



8
9
10
# File 'lib/ffaker/skill.rb', line 8

def tech_skill
  fetch_sample(TECH_SKILLS)
end

#tech_skills(num = 3) ⇒ Object



12
13
14
# File 'lib/ffaker/skill.rb', line 12

def tech_skills(num = 3)
  fetch_sample(TECH_SKILLS, count: num)
end