From 2357b002c6e4e4c5d14b158fb2fc0e018e620ea7 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 20 Jan 2016 06:39:42 -0500 Subject: [PATCH] Update qbo.rb Added get_base convenience method --- app/models/qbo.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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