lib/c_rater/api_wrapper.rb
Method get_feedback
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def get_feedback(item_id, response_id, response_text)
xml = request_xml(item_id, response_id, response_text)
resp = HTTParty.post(@url, request_options(xml))
# C-Rater API seems to always return HTTP 200 and error message provided in XML body.
# This code assumes that there is only one XML structure that is correct for us (that includes score)
Method initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(client_id, username, password, url = nil, api_key = nil)