Class: Faker::Coffee

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


4
5
6
# File 'lib/faker/coffee.rb', line 4

def blend_name
  parse('coffee.blend_name')
end

.notesObject


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

def notes
  parse('coffee.notes')
end

.originObject


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

.varietyObject


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

def variety
  fetch('coffee.variety')
end