skryl/quickbooks_api — Issue #2: :qb type object fails to initialize 
Author: rposborne
Created: 2011-12-04 15:07:14+00:00
State: open

require "Quickbooks"

api = Quickbooks::API.instance(:qb)

if you intliaze a qbpos object it will complete the load. But it appears to be incomplet, stoping short at SpecialAccountAdd.

[Quickbooks::QBXML::QBXML, Quickbooks::QBXML::QBXMLMsgsRq, Quickbooks::QBXML::HostQueryRq, Quickbooks::QBXML::IncludeListMetaData, Quickbooks::QBXML::CompanyQueryRq, Quickbooks::QBXML::CompanyActivityQueryRq, Quickbooks::QBXML::PreferencesQueryRq, Quickbooks::QBXML::AccountAddRq, Quickbooks::QBXML::AccountAdd, Quickbooks::QBXML::ParentRef, Quickbooks::QBXML::SalesTaxCodeRef, Quickbooks::QBXML::AccountModRq, Quickbooks::QBXML::AccountMod, Quickbooks::QBXML::AccountQueryRq, Quickbooks::QBXML::NameFilter, Quickbooks::QBXML::NameRangeFilter, Quickbooks::QBXML::SpecialAccountAddRq, Quickbooks::QBXML::SpecialAccountAdd]

/Users/rposborne/.rvm/gems/ruby-1.9.2-p290@lumber/gems/quickbooks_api-0.1.4/lib/quickbooks/parser/class_builder.rb:27:in `add_casting_attribute': undefined method `call' for nil:NilClass (NoMethodError)
from /Users/rposborne/.rvm/gems/ruby-1.9.2-p290@lumber/gems/quickbooks_api-0.1.4/lib/quickbooks/dtd_parser.rb:9:in `process_leaf_node'
from /Users/rposborne/.rvm/gems/ruby-1.9.2-p290@lumber/gems/quickbooks_api-0.1.4/lib/quickbooks/qbxml_parser.rb:37:in `process_xml_obj'
from /Users/rposborne/.rvm/gems/ruby-1.9.2-p290@lumber/gems/quickbooks_api-0.1.4/lib/quickbooks/qbxml_parser.rb:32:in `process_xml_obj'