Class: Faker::Coffee

Inherits:
Base
  • Object
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_nameObject


8
9
10
# File 'lib/faker/default/coffee.rb', line 8

def blend_name
  parse('coffee.blend_name')
end

.intensifierObject


26
27
28
# File 'lib/faker/default/coffee.rb', line 26

def intensifier
  fetch('coffee.intensifier')
end

.notesObject


22
23
24
# File 'lib/faker/default/coffee.rb', line 22

def notes
  parse('coffee.notes')
end

.originObject


12
13
14
15
16
# File 'lib/faker/default/coffee.rb', line 12

def origin
  country = fetch('coffee.country')
  region = fetch("coffee.regions.#{search_format(country)}")
  "#{region}, #{country}"
end

.varietyObject


18
19
20
# File 'lib/faker/default/coffee.rb', line 18

def variety
  fetch('coffee.variety')
end