careerbuilder / ruby-cb-api

Ruby wrapper around the CareerBuilder.com APIs
Apache License 2.0
14 stars 18 forks source link

Fix recs NoMethodError for no-recs errors. #268

Closed Casao closed 7 years ago

Casao commented 7 years ago

Previous system used a bunch of if hash.key? :key_name nested 7 layers deep. I switched to dig then reverted to hash access for pre-2.3 compatibility.

This just rescues the NoMethodError from trying to build. Any exception here should really go to [], but I figured on the smallest scope of change for now.