Class: EyeOfNewt::Ingredient
- Inherits:
-
Object
- Object
- EyeOfNewt::Ingredient
- Defined in:
- lib/eye_of_newt/ingredient.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note ⇒ Object
Returns the value of attribute note.
-
#style ⇒ Object
Returns the value of attribute style.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#unit_modifier ⇒ Object
Returns the value of attribute unit_modifier.
Instance Method Summary collapse
-
#initialize(amount: nil, unit: nil, unit_modifier: nil, name: nil, style: nil, note: nil) ⇒ Ingredient
constructor
A new instance of Ingredient.
Constructor Details
#initialize(amount: nil, unit: nil, unit_modifier: nil, name: nil, style: nil, note: nil) ⇒ Ingredient
Returns a new instance of Ingredient.
5 6 7 8 9 10 11 12 |
# File 'lib/eye_of_newt/ingredient.rb', line 5 def initialize(amount: nil, unit: nil, unit_modifier: nil, name: nil, style: nil, note: nil) self.amount = amount self.unit = unit self.unit_modifier = unit_modifier self.name = name self.style = style self.note = note end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def amount @amount end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def note @note end |
#style ⇒ Object
Returns the value of attribute style.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def style @style end |
#unit ⇒ Object
Returns the value of attribute unit.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def unit @unit end |
#unit_modifier ⇒ Object
Returns the value of attribute unit_modifier.
3 4 5 |
# File 'lib/eye_of_newt/ingredient.rb', line 3 def unit_modifier @unit_modifier end |