Sha256: 91117be524391f5d625dc8600deff599c9a711c76ad3746c2d1fb4e4910385cd
Contents?: true
Size: 594 Bytes
Versions: 20
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true module Faker class Beer < Base flexible :beer class << self def name fetch('beer.name') end def style fetch('beer.style') end def hop fetch('beer.hop') end def yeast fetch('beer.yeast') end def malts fetch('beer.malt') end def ibu rand(10..100).to_s + ' IBU' end def alcohol rand(2.0..10.0).round(1).to_s + '%' end def blg rand(5.0..20.0).round(1).to_s + '°Blg' end end end end
Version data entries
20 entries across 20 versions & 1 rubygems