# File lib/rubytter/oauth_rubytter.rb, line 34 def parse_response(res) json_data = JSON.parse(res.body) case res.code when "200" structize(json_data) else raise APIError.new(json_data['error'], res) end end