Class: InvoiceCount::CLI
- Inherits:
-
Thor
- Object
- Thor
- InvoiceCount::CLI
- Defined in:
- lib/invoice_count.rb
Instance Method Summary collapse
Instance Method Details
#count(id) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/invoice_count.rb', line 16 def count(id) starting_date = Date.parse([:init]) ending_date = Date.parse([:term]) puts InvoiceCount::CountCommand.new(id, starting_date, ending_date).execute end |