Class: Kaltura::KalturaQuestionCuePoint
- Inherits:
-
KalturaCuePoint
- Object
- KalturaObjectBase
- KalturaCuePoint
- Kaltura::KalturaQuestionCuePoint
- Defined in:
- lib/kaltura_plugins/kaltura_quiz_client_plugin.rb
Instance Attribute Summary collapse
-
#explanation ⇒ Object
Returns the value of attribute explanation.
-
#hint ⇒ Object
Returns the value of attribute hint.
-
#optional_answers ⇒ Object
Array of key value answerKey->optionAnswer objects.
-
#question ⇒ Object
Returns the value of attribute question.
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
#explanation ⇒ Object
Returns the value of attribute explanation.
164 165 166 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 164 def explanation @explanation end |
#hint ⇒ Object
Returns the value of attribute hint.
162 163 164 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 162 def hint @hint end |
#optional_answers ⇒ Object
Array of key value answerKey->optionAnswer objects
161 162 163 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 161 def optional_answers @optional_answers end |
#question ⇒ Object
Returns the value of attribute question.
163 164 165 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 163 def question @question end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
167 168 169 170 171 172 173 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 167 def from_xml(xml_element) super self.optional_answers = KalturaClientBase.object_from_xml(xml_element.elements['optionalAnswers'], 'KalturaOptionalAnswer') self.hint = xml_element.elements['hint'].text self.question = xml_element.elements['question'].text self.explanation = xml_element.elements['explanation'].text end |