class Faker::Tea

def type

Returns:
  • (String) - a type of tea
def type
  fetch 'tea.type'
end

def variety(type: nil)

Returns:
  • (String) - a variety of tea

Parameters:
  • type (String, nil) -- the type of tea to query for (valid types: 'Black', 'Green', 'Oolong', 'White', and 'Herbal')
def variety(type: nil)
  type ||= fetch('tea.type')
  fetch "tea.variety.#{type.downcase}"
end