Module: GnuCash::Invoice::Runner
- Defined in:
- lib/gnucash/invoice/runner.rb
Defined Under Namespace
Classes: InvalidArguments
Class Method Summary collapse
Class Method Details
.run(argv) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/gnucash/invoice/runner.rb', line 13 def self.run argv = parse argv GnuCash.connect! .dbpath # Print out invoice unless argv.empty? puts Printer.new(.invoice_id).render exit end # Show known invoices Invoice.all.each do |invoice| puts invoice end end |