Class: Kaltura::KalturaAnswerCuePoint
- Inherits:
-
KalturaCuePoint
- Object
- KalturaObjectBase
- KalturaCuePoint
- Kaltura::KalturaAnswerCuePoint
- Defined in:
- lib/kaltura_plugins/kaltura_quiz_client_plugin.rb
Instance Attribute Summary collapse
-
#answer_key ⇒ Object
Returns the value of attribute answer_key.
-
#correct_answer_keys ⇒ Object
Array of string.
-
#explanation ⇒ Object
Returns the value of attribute explanation.
-
#is_correct ⇒ Object
Returns the value of attribute is_correct.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#quiz_user_entry_id ⇒ Object
Returns the value of attribute quiz_user_entry_id.
Attributes inherited from KalturaCuePoint
#created_at, #cue_point_type, #entry_id, #force_stop, #id, #partner_data, #partner_id, #partner_sort_value, #start_time, #status, #system_name, #tags, #thumb_offset, #triggered_at, #updated_at, #user_id
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#answer_key ⇒ Object
Returns the value of attribute answer_key.
135 136 137 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 135 def answer_key @answer_key end |
#correct_answer_keys ⇒ Object
Array of string
139 140 141 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 139 def correct_answer_keys @correct_answer_keys end |
#explanation ⇒ Object
Returns the value of attribute explanation.
140 141 142 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 140 def explanation @explanation end |
#is_correct ⇒ Object
Returns the value of attribute is_correct.
136 137 138 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 136 def is_correct @is_correct end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
133 134 135 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 133 def parent_id @parent_id end |
#quiz_user_entry_id ⇒ Object
Returns the value of attribute quiz_user_entry_id.
134 135 136 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 134 def quiz_user_entry_id @quiz_user_entry_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
146 147 148 149 150 151 152 153 154 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 146 def from_xml(xml_element) super self.parent_id = xml_element.elements['parentId'].text self.quiz_user_entry_id = xml_element.elements['quizUserEntryId'].text self.answer_key = xml_element.elements['answerKey'].text self.is_correct = xml_element.elements['isCorrect'].text self.correct_answer_keys = KalturaClientBase.object_from_xml(xml_element.elements['correctAnswerKeys'], 'KalturaString') self.explanation = xml_element.elements['explanation'].text end |