Class: Kaltura::KalturaQuestionCuePoint

Inherits:
KalturaCuePoint show all
Defined in:
lib/kaltura_plugins/kaltura_quiz_client_plugin.rb

Instance Attribute Summary collapse

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

#camelcase, #to_b, #to_params

Instance Attribute Details

#exclude_from_scoreObject

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

#explanationObject

Returns the value of attribute explanation.



222
223
224
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 222

def explanation
  @explanation
end

#hintObject

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_answersObject

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_orderObject

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

#questionObject

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_typeObject

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