Class: Invoicer::Harvest

Inherits:
Object
  • Object
show all
Defined in:
lib/services/harvest.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Harvest

Returns a new instance of Harvest.



8
9
10
11
# File 'lib/services/harvest.rb', line 8

def initialize(*args)
  @harvester = ::Harvester::Client.new(*args)
  @invoices = Invoicer::HarvestInvoiceManager.new(self)
end

Instance Attribute Details

#harvesterObject (readonly)

Returns the value of attribute harvester.



5
6
7
# File 'lib/services/harvest.rb', line 5

def harvester
  @harvester
end

#invoicesObject (readonly)

Returns the value of attribute invoices.



6
7
8
# File 'lib/services/harvest.rb', line 6

def invoices
  @invoices
end