class Harvesting::Models::Invoice
An invoice record from your Harvest account.
For more information: help.getharvest.com/api-v2/invoices-api/invoices/invoices/
Public Instance Methods
line_items()
click to toggle source
# File lib/harvesting/models/invoice.rb, line 35 def line_items @line_items ||= @attributes['line_items'].map { |line_item_attributes| LineItem.new line_item_attributes, { harvest_client: harvest_client } } end
path()
click to toggle source
# File lib/harvesting/models/invoice.rb, line 39 def path @attributes['id'].nil? ? "invoices" : "invoices/#{@attributes['id']}" end