class Faker::Beer
Public Class Methods
alcohol()
click to toggle source
# File lib/faker/beer.rb, line 31 def alcohol rand(2.0..10.0).round(1).to_s + '%' end
blg()
click to toggle source
# File lib/faker/beer.rb, line 35 def blg rand(5.0..20.0).round(1).to_s + '°Blg' end
hop()
click to toggle source
# File lib/faker/beer.rb, line 15 def hop fetch('beer.hop') end
ibu()
click to toggle source
# File lib/faker/beer.rb, line 27 def ibu rand(10..100).to_s + ' IBU' end
malts()
click to toggle source
# File lib/faker/beer.rb, line 23 def malts fetch('beer.malt') end
name()
click to toggle source
# File lib/faker/beer.rb, line 7 def name fetch('beer.name') end
style()
click to toggle source
# File lib/faker/beer.rb, line 11 def style fetch('beer.style') end
yeast()
click to toggle source
# File lib/faker/beer.rb, line 19 def yeast fetch('beer.yeast') end