Sha256: 4daccb85f2af25a74c91dfcefc34813fb942d5977991ef9b67242a0befab0dbc
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
# Contains the flavor scores for a recipe, each on a range from 0 to 1. class Yummly::Flavor attr_accessor :spiciness, :bitterness, :sweetness, :savoriness, :saltiness, :sourness def initialize(values) @spiciness = values["spicy"] @bitterness = values["bitter"] @sweetness = values["sweet"] @savoriness = values["meaty"] @sourness = values["sour"] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yummly-0.0.2 | lib/yummly/flavor.rb |
yummly-0.0.1 | lib/yummly/flavor.rb |