Class: Faker::Coffee
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.blend_name ⇒ String
Produces a random blend name.
-
.intensifier ⇒ String
Produces a random coffee taste intensity.
-
.notes ⇒ String
Produces a string containing a random description of a coffee’s taste.
-
.origin ⇒ String
Produces a random coffee origin place.
-
.variety ⇒ String
Produces a random coffee variety.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.blend_name ⇒ String
Produces a random blend name.
17 18 19 |
# File 'lib/faker/default/coffee.rb', line 17 def blend_name parse('coffee.blend_name') end |
.intensifier ⇒ String
Produces a random coffee taste intensity.
71 72 73 |
# File 'lib/faker/default/coffee.rb', line 71 def intensifier fetch('coffee.intensifier') end |
.notes ⇒ String
Produces a string containing a random description of a coffee’s taste.
58 59 60 |
# File 'lib/faker/default/coffee.rb', line 58 def notes parse('coffee.notes') end |
.origin ⇒ String
Produces a random coffee origin place.
30 31 32 33 34 |
# File 'lib/faker/default/coffee.rb', line 30 def origin country = fetch('coffee.country') region = fetch("coffee.regions.#{search_format(country)}") "#{region}, #{country}" end |
.variety ⇒ String
Produces a random coffee variety.
45 46 47 |
# File 'lib/faker/default/coffee.rb', line 45 def variety fetch('coffee.variety') end |