method-inc / bamboozled

Bamboozled wraps the BambooHR API without the use of Rails dependencies.
MIT License
44 stars 50 forks source link

ensure JSON.parse gets a string, not an HTTParty::Response object #66

Open rhec opened 5 years ago

rhec commented 5 years ago

Description

There was already some normalization of response.body to a string, so I pulled that out above the parsing so it could be re-used.

Related Issue

Fixes #65

Types of changes

Checklist: