Method: Codelocks::Response#error_message
- Defined in:
- lib/codelocks/response.rb
#error_message ⇒ String
Convenience method for fetching the error message
35 36 37 38 39 40 41 |
# File 'lib/codelocks/response.rb', line 35 def if !success? body["Message"] end rescue JSON::ParserError => ex ex. end |