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.
-
#feedback ⇒ Object
Returns the value of attribute feedback.
-
#is_correct ⇒ Object
Returns the value of attribute is_correct.
-
#open_answer ⇒ Object
Returns the value of attribute open_answer.
-
#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
#copied_from, #created_at, #cue_point_type, #entry_id, #force_stop, #id, #int_id, #is_momentary, #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.
175 176 177 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 175 def answer_key @answer_key end |
#correct_answer_keys ⇒ Object
Array of string
179 180 181 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 179 def correct_answer_keys @correct_answer_keys end |
#explanation ⇒ Object
Returns the value of attribute explanation.
180 181 182 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 180 def explanation @explanation end |
#feedback ⇒ Object
Returns the value of attribute feedback.
181 182 183 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 181 def feedback @feedback end |
#is_correct ⇒ Object
Returns the value of attribute is_correct.
177 178 179 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 177 def is_correct @is_correct end |
#open_answer ⇒ Object
Returns the value of attribute open_answer.
176 177 178 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 176 def open_answer @open_answer end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
173 174 175 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 173 def parent_id @parent_id end |
#quiz_user_entry_id ⇒ Object
Returns the value of attribute quiz_user_entry_id.
174 175 176 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 174 def quiz_user_entry_id @quiz_user_entry_id end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 187 def from_xml(xml_element) super if xml_element.elements['parentId'] != nil self.parent_id = xml_element.elements['parentId'].text end if xml_element.elements['quizUserEntryId'] != nil self.quiz_user_entry_id = xml_element.elements['quizUserEntryId'].text end if xml_element.elements['answerKey'] != nil self.answer_key = xml_element.elements['answerKey'].text end if xml_element.elements['openAnswer'] != nil self.open_answer = xml_element.elements['openAnswer'].text end if xml_element.elements['isCorrect'] != nil self.is_correct = xml_element.elements['isCorrect'].text end if xml_element.elements['correctAnswerKeys'] != nil self.correct_answer_keys = KalturaClientBase.object_from_xml(xml_element.elements['correctAnswerKeys'], 'KalturaString') end if xml_element.elements['explanation'] != nil self.explanation = xml_element.elements['explanation'].text end if xml_element.elements['feedback'] != nil self.feedback = xml_element.elements['feedback'].text end end |