Method: FFakerTW::Company#position

Defined in:
lib/ffakerTW/company.rb

#positionObject



36
37
38
39
40
41
42
# File 'lib/ffakerTW/company.rb', line 36

def position
  case rand(0..2)
  when 0 then [fetch_sample(POSITION_PREFIXES), fetch_sample(POSITIONS)]
  when 1 then [fetch_sample(POSITION_AREAS), fetch_sample(POSITIONS)]
  when 2 then [fetch_sample(POSITION_PREFIXES), fetch_sample(POSITION_AREAS), fetch_sample(POSITIONS)]
  end.join(' ')
end