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