Sha256: 166e006ec396d08d4286df2b4ded43773629f3b63941dea176cba3d2885b469f

Contents?: true

Size: 541 Bytes

Versions: 10

Compression:

Stored size: 541 Bytes

Contents

# Contains the flavor scores for a recipe, each on a range from 0 to 1.
module Yummly
  class Flavor

    attr_accessor :spiciness,
                  :bitterness,
                  :sweetness,
                  :savoriness,
                  :saltiness,
                  :sourness

    def initialize(values)
      @spiciness = values["Piquant"]
      @bitterness = values["Bitter"]
      @sweetness = values["Sweet"]
      @savoriness = values["Meaty"]
      @sourness = values["Sour"]
      @saltiness = values["Salty"]
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yummly-0.0.13 lib/yummly/flavor.rb
yummly-0.0.12 lib/yummly/flavor.rb
yummly-0.0.11 lib/yummly/flavor.rb
yummly-0.0.10 lib/yummly/flavor.rb
yummly-0.0.9 lib/yummly/flavor.rb
yummly-0.0.8 lib/yummly/flavor.rb
yummly-0.0.7 lib/yummly/flavor.rb
yummly-0.0.6 lib/yummly/flavor.rb
yummly-0.0.5 lib/yummly/flavor.rb
yummly-0.0.4 lib/yummly/flavor.rb