Class: Kaltura::KalturaAnswerCuePoint

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

#answer_keyObject

Returns the value of attribute answer_key.



135
136
137
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 135

def answer_key
  @answer_key
end

#correct_answer_keysObject

Array of string



139
140
141
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 139

def correct_answer_keys
  @correct_answer_keys
end

#explanationObject

Returns the value of attribute explanation.



140
141
142
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 140

def explanation
  @explanation
end

#is_correctObject

Returns the value of attribute is_correct.



136
137
138
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 136

def is_correct
  @is_correct
end

#parent_idObject

Returns the value of attribute parent_id.



133
134
135
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 133

def parent_id
  @parent_id
end

#quiz_user_entry_idObject

Returns the value of attribute quiz_user_entry_id.



134
135
136
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 134

def quiz_user_entry_id
  @quiz_user_entry_id
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



146
147
148
149
150
151
152
153
154
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 146

def from_xml(xml_element)
	super
	self.parent_id = xml_element.elements['parentId'].text
	self.quiz_user_entry_id = xml_element.elements['quizUserEntryId'].text
	self.answer_key = xml_element.elements['answerKey'].text
	self.is_correct = xml_element.elements['isCorrect'].text
	self.correct_answer_keys = KalturaClientBase.object_from_xml(xml_element.elements['correctAnswerKeys'], 'KalturaString')
	self.explanation = xml_element.elements['explanation'].text
end