Method: FFakerTW::Product#brand
- Defined in:
- lib/ffakerTW/product.rb
#brand ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ffakerTW/product.rb', line 14 def brand case rand(0..11) when (0..4) then fetch_sample(B1) + fetch_sample(B2) when (5..10) [ fetch_sample(START), fetch_sample(VOWELS), fetch_sample(SUFFIX), rand(0..1).zero? ? fetch_sample(ADDON) : nil ].join.capitalize when 11 then letters(2..3).to_s end end |