Class: InvoiceCount::CLI

Inherits:
Thor
  • Object
show all
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(options[:init])
  ending_date   = Date.parse(options[:term])

  puts InvoiceCount::CountCommand.new(id, starting_date, ending_date).execute
end