lib/ims/lti/extensions/outcome_data.rb
# POSTs the given score to the Tool Consumer with a replaceResult and
# adds the specified data. The options hash can have the keys
# :text, :cdata_text, :url, :score, or :total_score
#
# If both cdata_text and text are sent, cdata_text will be used
# If both total_score and score are sent, total_score will be used
# If score is nil, the replace result XML will not contain a resultScore node
#
# Creates a new OutcomeRequest object and stores it in @outcome_requests
#
# @return [OutcomeResponse] the response from the Tool Consumer
POSTs the given score to the Tool Consumer with a replaceResult and
adds the specified data.

If both cdata_text and text are sent, cdata_text will be used
If both total_score and score are sent, total_score will be used
If score is nil, the replace result XML will not contain a resultScore node

Creates a new OutcomeRequest object and stores it in @outcome_requests
POSTs the given score to the Tool Consumer with a replaceResult and adds the specified data . If both cdata_text and text are sent cdata_text will be used If both total_score and score are sent total_score will be used If score is nil the replace result XML will not contain a resultScore node Creates a new OutcomeRequest object and stores it in @outcome_requests
def post_extended_replace_result!(options = {})
          opts = {}
          options.each {|k,v| opts[k.to_sym] = v}
          req = new_request
          req.outcome_cdata_text = opts[:cdata_text]
          req.outcome_text = opts[:text]
          req.outcome_url = opts[:url]
          req.total_score = opts[:total_score]
          req.post_replace_result!(opts[:score])
        end
def post_extended_replace_result! ( options = { } ) opts = { } options . each { | k , v | opts [ k . to_sym ] = v } req = new_request req . outcome_cdata_text = opts [ :cdata_text ] req . outcome_text = opts [ :text ] req . outcome_url = opts [ :url ] req . total_score = opts [ :total_score ] req . post_replace_result! ( opts [ :score ] ) end
POSTs the given score to the Tool Consumer with a replaceResult and
adds the specified data.
POSTs the given score to the Tool Consumer with a replaceResult and adds the specified data .
the response from the Tool Consumer
the response from the Tool Consumer
OutcomeResponse
options
<not_specific>