class Faker::Coffee

Public Class Methods

blend_name() click to toggle source
# File lib/faker/coffee.rb, line 4
def blend_name
  parse('coffee.blend_name')
end
notes() click to toggle source
# File lib/faker/coffee.rb, line 18
def notes
  parse('coffee.notes')
end
origin() click to toggle source
# File lib/faker/coffee.rb, line 8
def origin
  country = fetch('coffee.country')
  region = fetch("coffee.regions.#{search_format(country)}")
  "#{region}, #{country}"
end
variety() click to toggle source
# File lib/faker/coffee.rb, line 14
def variety
  fetch('coffee.variety')
end

Private Class Methods

search_format(key) click to toggle source
# File lib/faker/coffee.rb, line 24
def search_format(key)
  key.split.length > 1 ? key.split.join('_').downcase : key.downcase
end