Class: Faker::Company
Constant Summary
Constants inherited from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.bs ⇒ Object
When a straight answer won’t do, BS to the rescue!.
-
.catch_phrase ⇒ Object
Generate a buzzword-laden catch phrase.
- .duns_number ⇒ Object
- .name ⇒ Object
- .suffix ⇒ Object
Methods inherited from Base
bothify, fetch, flexible, letterify, method_missing, numerify, parse, regexify, translate
Class Method Details
.bs ⇒ Object
When a straight answer won’t do, BS to the rescue!
20 21 22 |
# File 'lib/faker/company.rb', line 20 def bs translate('faker.company.bs').collect {|list| list.sample }.join(' ') end |
.catch_phrase ⇒ Object
Generate a buzzword-laden catch phrase.
15 16 17 |
# File 'lib/faker/company.rb', line 15 def catch_phrase translate('faker.company.buzzwords').collect {|list| list.sample }.join(' ') end |
.duns_number ⇒ Object
24 25 26 |
# File 'lib/faker/company.rb', line 24 def duns_number ('%09d' % rand(10 ** 9)).gsub(/(\d\d)(\d\d\d)(\d\d\d\d)/, '\\1-\\2-\\3') end |
.name ⇒ Object
6 7 8 |
# File 'lib/faker/company.rb', line 6 def name parse('company.name') end |
.suffix ⇒ Object
10 11 12 |
# File 'lib/faker/company.rb', line 10 def suffix fetch('company.suffix') end |