class Faker::Beer

Public Class Methods

alcohol() click to toggle source
# File lib/faker/beer.rb, line 30
def alcohol
  rand(2.0..10.0).round(1).to_s + '%'
end
blg() click to toggle source
# File lib/faker/beer.rb, line 34
def blg
  rand(5.0..20.0).round(1).to_s + '°Blg'
end
hop() click to toggle source
# File lib/faker/beer.rb, line 14
def hop
  fetch('beer.hop')
end
ibu() click to toggle source
# File lib/faker/beer.rb, line 26
def ibu
  rand(10..100).to_s + ' IBU'
end
malts() click to toggle source
# File lib/faker/beer.rb, line 22
def malts
  fetch('beer.malt')
end
name() click to toggle source
# File lib/faker/beer.rb, line 6
def name
  fetch('beer.name')
end
style() click to toggle source
# File lib/faker/beer.rb, line 10
def style
  fetch('beer.style')
end
yeast() click to toggle source
# File lib/faker/beer.rb, line 18
def yeast
  fetch('beer.yeast')
end