Class: Kaltura::KalturaQuestionCuePoint
- Inherits:
-
KalturaCuePoint
- Object
- KalturaObjectBase
- KalturaCuePoint
- Kaltura::KalturaQuestionCuePoint
- Defined in:
- lib/kaltura_plugins/kaltura_quiz_client_plugin.rb
Instance Attribute Summary collapse
-
#exclude_from_score ⇒ Object
Returns the value of attribute exclude_from_score.
-
#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.
-
#presentation_order ⇒ Object
Returns the value of attribute presentation_order.
-
#question ⇒ Object
Returns the value of attribute question.
-
#question_type ⇒ Object
Returns the value of attribute question_type.
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
#exclude_from_score ⇒ Object
Returns the value of attribute exclude_from_score.
225 226 227 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 225 def exclude_from_score @exclude_from_score end |
#explanation ⇒ Object
Returns the value of attribute explanation.
222 223 224 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 222 def explanation @explanation end |
#hint ⇒ Object
Returns the value of attribute hint.
220 221 222 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 220 def hint @hint end |
#optional_answers ⇒ Object
Array of key value answerKey->optionAnswer objects
219 220 221 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 219 def optional_answers @optional_answers end |
#presentation_order ⇒ Object
Returns the value of attribute presentation_order.
224 225 226 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 224 def presentation_order @presentation_order end |
#question ⇒ Object
Returns the value of attribute question.
221 222 223 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 221 def question @question end |
#question_type ⇒ Object
Returns the value of attribute question_type.
223 224 225 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 223 def question_type @question_type end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 237 def from_xml(xml_element) super if xml_element.elements['optionalAnswers'] != nil self.optional_answers = KalturaClientBase.object_from_xml(xml_element.elements['optionalAnswers'], 'KalturaOptionalAnswer') end if xml_element.elements['hint'] != nil self.hint = xml_element.elements['hint'].text end if xml_element.elements['question'] != nil self.question = xml_element.elements['question'].text end if xml_element.elements['explanation'] != nil self.explanation = xml_element.elements['explanation'].text end if xml_element.elements['questionType'] != nil self.question_type = xml_element.elements['questionType'].text end if xml_element.elements['presentationOrder'] != nil self.presentation_order = xml_element.elements['presentationOrder'].text end if xml_element.elements['excludeFromScore'] != nil self.exclude_from_score = xml_element.elements['excludeFromScore'].text end end |