Class: MoneyTracking::Cli::CreateCommand
- Inherits:
-
Struct
- Object
- Struct
- MoneyTracking::Cli::CreateCommand
- Defined in:
- lib/money_tracking/cli/create_command.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#expense_factory ⇒ Object
Returns the value of attribute expense_factory.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount
3 4 5 |
# File 'lib/money_tracking/cli/create_command.rb', line 3 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency
3 4 5 |
# File 'lib/money_tracking/cli/create_command.rb', line 3 def currency @currency end |
#expense_factory ⇒ Object
Returns the value of attribute expense_factory
3 4 5 |
# File 'lib/money_tracking/cli/create_command.rb', line 3 def expense_factory @expense_factory end |
#tags ⇒ Object
Returns the value of attribute tags
3 4 5 |
# File 'lib/money_tracking/cli/create_command.rb', line 3 def @tags end |
Instance Method Details
#call ⇒ Object
4 5 6 7 8 |
# File 'lib/money_tracking/cli/create_command.rb', line 4 def call expense_factory .create(raw_expense) .build_view(Views::ExpenseCreated) end |