Class: Invoicer::HarvestInvoice
- Inherits:
-
Object
- Object
- Invoicer::HarvestInvoice
- Defined in:
- lib/services/harvest/invoice.rb
Class Method Summary collapse
Class Method Details
.from_harvest(harvest_invoice) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/services/harvest/invoice.rb', line 3 def self.from_harvest(harvest_invoice) Invoice.new( :id => harvest_invoice.id, :number => harvest_invoice.number, :total_amount => harvest_invoice.total_amount, :due_amount => harvest_invoice.due_amount, :issued_on => harvest_invoice.issued_on, :due_on => harvest_invoice.due_on, :currency => harvest_invoice.currency, :service => :harvest ) end |