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