mil-ims-lti 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ims/lti/outcome_response.rb +3 -1
- metadata +1 -1
@@ -106,7 +106,9 @@ module IMS::LTI
|
|
106
106
|
# Parse Outcome Response data from XML
|
107
107
|
def process_xml(xml)
|
108
108
|
doc = REXML::Document.new xml
|
109
|
-
@message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier')
|
109
|
+
@message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier')
|
110
|
+
@message_identifier = doc.text('//imsx_messageIdentifier') if @message_identifier.nil?
|
111
|
+
@message_identifier = @message_identifier.nil? ? '0' : @message_identifier.to_s
|
110
112
|
@code_major = doc.text('//imsx_statusInfo/imsx_codeMajor')
|
111
113
|
@code_major.downcase! if @code_major
|
112
114
|
@severity = doc.text('//imsx_statusInfo/imsx_severity')
|