Class: MoneyTracking::Cli::UpdateCommand
- Inherits:
-
Struct
- Object
- Struct
- MoneyTracking::Cli::UpdateCommand
- Defined in:
- lib/money_tracking/cli/update_command.rb
Instance Attribute Summary collapse
-
#add_tags ⇒ Object
Returns the value of attribute add_tags.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#expense_finder ⇒ Object
Returns the value of attribute expense_finder.
-
#expense_id ⇒ Object
Returns the value of attribute expense_id.
-
#rm_tags ⇒ Object
Returns the value of attribute rm_tags.
Instance Method Summary collapse
Instance Attribute Details
#add_tags ⇒ Object
Returns the value of attribute add_tags
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def @add_tags end |
#amount ⇒ Object
Returns the value of attribute amount
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def currency @currency end |
#expense_finder ⇒ Object
Returns the value of attribute expense_finder
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def expense_finder @expense_finder end |
#expense_id ⇒ Object
Returns the value of attribute expense_id
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def expense_id @expense_id end |
#rm_tags ⇒ Object
Returns the value of attribute rm_tags
3 4 5 |
# File 'lib/money_tracking/cli/update_command.rb', line 3 def @rm_tags end |
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/money_tracking/cli/update_command.rb', line 4 def call expense .update( amount: amount, currency: currency, add_tags: , rm_tags: , ).build_view(view_factory) end |