Class: Thirsty::Today::Add
- Defined in:
- lib/thirsty/today/add.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(amount) ⇒ Add
constructor
A new instance of Add.
Methods inherited from Callable
Constructor Details
#initialize(amount) ⇒ Add
Returns a new instance of Add.
8 9 10 |
# File 'lib/thirsty/today/add.rb', line 8 def initialize(amount) @amount = amount end |
Instance Method Details
#call ⇒ Object
12 13 14 15 |
# File 'lib/thirsty/today/add.rb', line 12 def call validate_amount update_amount end |