Class: Yummly::Flavor
- Inherits:
-
Object
- Object
- Yummly::Flavor
- Defined in:
- lib/yummly/flavor.rb
Instance Attribute Summary collapse
-
#bitterness ⇒ Object
Returns the value of attribute bitterness.
-
#saltiness ⇒ Object
Returns the value of attribute saltiness.
-
#savoriness ⇒ Object
Returns the value of attribute savoriness.
-
#sourness ⇒ Object
Returns the value of attribute sourness.
-
#spiciness ⇒ Object
Returns the value of attribute spiciness.
-
#sweetness ⇒ Object
Returns the value of attribute sweetness.
Instance Method Summary collapse
-
#initialize(values) ⇒ Flavor
constructor
A new instance of Flavor.
Constructor Details
#initialize(values) ⇒ Flavor
Returns a new instance of Flavor.
12 13 14 15 16 17 18 19 |
# File 'lib/yummly/flavor.rb', line 12 def initialize(values) @spiciness = values["Piquant"] @bitterness = values["Bitter"] @sweetness = values["Sweet"] @savoriness = values["Meaty"] @sourness = values["Sour"] @saltiness = values["Salty"] end |
Instance Attribute Details
#bitterness ⇒ Object
Returns the value of attribute bitterness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def bitterness @bitterness end |
#saltiness ⇒ Object
Returns the value of attribute saltiness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def saltiness @saltiness end |
#savoriness ⇒ Object
Returns the value of attribute savoriness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def savoriness @savoriness end |
#sourness ⇒ Object
Returns the value of attribute sourness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def sourness @sourness end |
#spiciness ⇒ Object
Returns the value of attribute spiciness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def spiciness @spiciness end |
#sweetness ⇒ Object
Returns the value of attribute sweetness.
5 6 7 |
# File 'lib/yummly/flavor.rb', line 5 def sweetness @sweetness end |