mattbeedle / capsule_crm

Ruby CapsuleCRM API consumer
MIT License
26 stars 16 forks source link

NoMethodError: undefined method `to_capsule_json' for #<Hash:0x00000008827578> #59

Closed NFau closed 10 years ago

NFau commented 10 years ago

It seems that some entry in capsule are not stock as object but as Hash

For example, the phone number is sometimes a CapsulCRM::Phone or a Hash. This problem cause a NoMethodError in the gem.

@phones=[{"id"=>"...", "type"=>"Work", "phoneNumber"=>"..."}, {"id"=>"...", "phoneNumber"=>"..."}]

mattbeedle commented 10 years ago

It would be great if you could submit a failing spec, or let me know how exactly to replicate this. I'm planning on re-writing the contacts code in #15

mattbeedle commented 10 years ago

@NFau could you tell me how to replicate this?

mattbeedle commented 10 years ago

Ok, I'm unable to replicate this issue. I'm going to close it, but feel free to reopen if you are still having problems.