class Faker::Coffee

def blend_name

Returns:
  • (String) -
def blend_name
  parse('coffee.blend_name')
end

def intensifier

Returns:
  • (String) -
def intensifier
  fetch('coffee.intensifier')
end

def notes

Returns:
  • (String) -
def notes
  parse('coffee.notes')
end

def origin

Returns:
  • (String) -
def origin
  country = fetch('coffee.country')
  region = fetch("coffee.regions.#{search_format(country)}")
  "#{region}, #{country}"
end

def search_format(key)

def search_format(key)
  key.split.length > 1 ? key.split.join('_').downcase : key.downcase
end

def variety

Returns:
  • (String) -
def variety
  fetch('coffee.variety')
end