Class: Invoicer::Freshbooks
- Inherits:
-
Object
- Object
- Invoicer::Freshbooks
- Defined in:
- lib/services/freshbooks.rb
Instance Attribute Summary collapse
-
#freshbooks ⇒ Object
readonly
Returns the value of attribute freshbooks.
-
#invoices ⇒ Object
readonly
Returns the value of attribute invoices.
Instance Method Summary collapse
-
#initialize(subdomain, api_key) ⇒ Freshbooks
constructor
A new instance of Freshbooks.
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
#freshbooks ⇒ Object (readonly)
Returns the value of attribute freshbooks.
6 7 8 |
# File 'lib/services/freshbooks.rb', line 6 def freshbooks @freshbooks end |
#invoices ⇒ Object (readonly)
Returns the value of attribute invoices.
7 8 9 |
# File 'lib/services/freshbooks.rb', line 7 def invoices @invoices end |