module ResponseParser
Public Class Methods
parse_error(obj)
click to toggle source
# File lib/flagger/response.rb, line 2 def self.parse_error(obj) hash = JSON.parse(obj) raise RuntimeError, hash['error'] if hash['error'] != '' && hash['error'] != nil hash['data'] end