Sha256: 47098ebfb1f450269e928a12c1927c99a1cd41dd9fbac8455143137dba8813e5

Contents?: true

Size: 155 Bytes

Versions: 1

Compression:

Stored size: 155 Bytes

Contents

module PunkyBrewster
  class Beer < Struct.new(:name, :price, :abv, :image_url)
    def abv_per_dollar
      (abv.to_f / price).round(2)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
punky_brewster-1.3.0 lib/punky_brewster/beer.rb