diff --git a/app/models/qbo.rb b/app/models/qbo.rb index 8b0f5f6..c5737af 100644 --- a/app/models/qbo.rb +++ b/app/models/qbo.rb @@ -29,6 +29,12 @@ class Qbo < ActiveRecord::Base c.persistent_secret = 'qb_secret' c.persistent_company_id = 'company_id' end + + # Get a quickbooks base object for type + # @params type of base + def self.get_base(type = nil) + Quickbooks::Base.new(first, type if type) + end # Get the QBO account def self.get_account