qbwc / quickbooks_api

A Ruby wrapper for the Quickbooks XML API
20 stars 10 forks source link

NoMethodError: undefined method `detect' for #<String:0x007fdb292cfae0> #6

Closed geermc4 closed 12 years ago

geermc4 commented 12 years ago

I'm getting that error on https://github.com/skryl/quickbooks_api/blob/master/lib/quickbooks/api.rb#L70 key, value = data.detect { |name, value| name != 'xml_attributes' && name != :xml_attributes } data is a string with XML, is the error not converting it to something else or where is it?

geermc4 commented 12 years ago

Comes from the job I added, so my bad.

geermc4 commented 12 years ago

Ok now, what does the job expect -.-

geermc4 commented 12 years ago

Takes a hash