Class: Faker::Coffee
- Inherits:
-
Base
- Object
- Base
- Faker::Coffee
show all
- Defined in:
- lib/faker/default/coffee.rb
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.blend_name ⇒ Object
6
7
8
|
# File 'lib/faker/default/coffee.rb', line 6
def blend_name
parse('coffee.blend_name')
end
|
.intensifier ⇒ Object
24
25
26
|
# File 'lib/faker/default/coffee.rb', line 24
def intensifier
fetch('coffee.intensifier')
end
|
.notes ⇒ Object
20
21
22
|
# File 'lib/faker/default/coffee.rb', line 20
def notes
parse('coffee.notes')
end
|
.origin ⇒ Object
10
11
12
13
14
|
# File 'lib/faker/default/coffee.rb', line 10
def origin
country = fetch('coffee.country')
region = fetch("coffee.regions.#{search_format(country)}")
"#{region}, #{country}"
end
|
.variety ⇒ Object
16
17
18
|
# File 'lib/faker/default/coffee.rb', line 16
def variety
fetch('coffee.variety')
end
|