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

#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

#camelcase, #to_b, #to_params

Instance Attribute Details

#explanationObject

Returns the value of attribute explanation.



164
165
166
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 164

def explanation
  @explanation
end

#hintObject

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_answersObject

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

#questionObject

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