module FFaker::Company

Constants

POSITIONS
POSITION_PREFIXES
SUFFIXES

Public Instance Methods

bs() click to toggle source

When a straight answer won’t do, BS to the rescue! Wordlist from dack.com/web/bullshit.html

# File lib/ffaker/company.rb, line 32
def bs
  "#{fetch_sample(BS_PRE)} #{fetch_sample(BS_MID)} #{fetch_sample(BS_POS)}"
end
catch_phrase() click to toggle source

Generate a buzzword-laden catch phrase. Wordlist from www.1728.com/buzzword.htm

# File lib/ffaker/company.rb, line 26
def catch_phrase
  "#{fetch_sample(CATCH_PRE)} #{fetch_sample(CATCH_MID)} #{fetch_sample(CATCH_POS)}"
end
name() click to toggle source
# File lib/ffaker/company.rb, line 12
def name
  case rand(0..2)
  when 0 then "#{Name.last_name} #{suffix}"
  when 1 then "#{Name.last_name}-#{Name.last_name}"
  when 2 then "#{Name.last_name}, #{Name.last_name} and #{Name.last_name}"
  end
end
position() click to toggle source
# File lib/ffaker/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
suffix() click to toggle source
# File lib/ffaker/company.rb, line 20
def suffix
  fetch_sample(SUFFIXES)
end