module FFaker::CompanyJA

Constants

DETAILED_TYPES
POSITIONS
TYPES

Public Instance Methods

name() click to toggle source
# File lib/ffaker/company_ja.rb, line 12
def name
  case rand(0..2)
  when 0 then "#{NameJA.last_name}#{fetch_sample(TYPES)}"
  when 1 then "#{fetch_sample(TYPES)}#{NameJA.last_name}"
  when 2 then "#{NameJA.last_name}#{fetch_sample(DETAILED_TYPES)}"
  end
end
position() click to toggle source
# File lib/ffaker/company_ja.rb, line 20
def position
  fetch_sample(POSITIONS)
end