urbanairship / ruby-library

A Ruby wrapper for the Urban Airship API.
Other
200 stars 117 forks source link

The error item of a response on timeout should be using string keys, #38

Closed kuahyeow closed 10 years ago

kuahyeow commented 11 years ago

to match the "error" response returned by Urban Airship

Otherwise, detecting errors will need something like :

    response = Urbanairship.push(payload)
    error    = response["error"] || response[:error]

Happy to add a spec if you think it's needed