mil-ims-lti 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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')
|