Class: Invoicer::Freshbooks

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subdomain, api_key) ⇒ Freshbooks

Returns a new instance of Freshbooks.



9
10
11
12
# File 'lib/services/freshbooks.rb', line 9

def initialize(subdomain, api_key)
  @freshbooks = ::FreshBooks::Client.new("#{ subdomain }.freshbooks.com", api_key)
  @invoices = Invoicer::FreshbooksInvoiceManager.new(self)
end

Instance Attribute Details

#freshbooksObject (readonly)

Returns the value of attribute freshbooks.



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

def freshbooks
  @freshbooks
end

#invoicesObject (readonly)

Returns the value of attribute invoices.



7
8
9
# File 'lib/services/freshbooks.rb', line 7

def invoices
  @invoices
end