lib/gnip_api/response.rb in gnip_api-0.0.8 vs lib/gnip_api/response.rb in gnip_api-0.0.9

- old
+ new

@@ -24,10 +24,10 @@ OK_STATUSES.include? @status end def error_message if @body && !@body.empty? - parsed = GnipApi::JsonParser.parse(@body) + parsed = GnipApi::JsonParser.new.parse(@body) return parsed['error']['message'] if parsed['error'] end return nil end end