Rakefile in receipts-1.0.4 vs Rakefile in receipts-1.1.0

- old
+ new

@@ -66,5 +66,36 @@ [nil, nil, "Tax Rate", "0%"], [nil, nil, "Amount Due", "$19.00"], ], ).render_file "examples/invoice.pdf" end + +task :statement do + require "./lib/receipts" + + Receipts::Statement.new( + id: "123", + issue_date: Date.today, + start_date: Date.today - 30, + end_date: Date.today, + bill_to: [ + "GoRails, LLC", + "123 Fake Street", + "New York City, NY 10012", + nil, + "mail@example.com", + ], + company: { + name: "GoRails, LLC", + address: "123 Fake Street\nNew York City, NY 10012", + email: "support@example.com", + logo: File.expand_path("./examples/gorails.png") + }, + line_items: [ + ["<b>Item</b>", "<b>Unit Cost</b>", "<b>Quantity</b>", "<b>Amount</b>"], + ["GoRails Subscription", "$19.00", "1", "$19.00"], + [nil, nil, "Subtotal", "$19.00"], + [nil, nil, "Tax Rate", "0%"], + [nil, nil, "Total", "$19.00"], + ], + ).render_file "examples/statement.pdf" +end