Class: Kaltura::KalturaQuiz

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

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#allow_answer_updateObject

Returns the value of attribute allow_answer_update.



91
92
93
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 91

def allow_answer_update
  @allow_answer_update
end

#allow_downloadObject

Returns the value of attribute allow_download.



93
94
95
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 93

def allow_download
  @allow_download
end

#show_correct_after_submissionObject

Returns the value of attribute show_correct_after_submission.



92
93
94
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 92

def show_correct_after_submission
  @show_correct_after_submission
end

#show_correct_key_on_answerObject

Returns the value of attribute show_correct_key_on_answer.



90
91
92
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 90

def show_correct_key_on_answer
  @show_correct_key_on_answer
end

#show_grade_after_submissionObject

Returns the value of attribute show_grade_after_submission.



94
95
96
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 94

def show_grade_after_submission
  @show_grade_after_submission
end

#show_result_on_answerObject

Returns the value of attribute show_result_on_answer.



89
90
91
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 89

def show_result_on_answer
  @show_result_on_answer
end

#ui_attributesObject

Array of key value ui related objects



88
89
90
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 88

def ui_attributes
  @ui_attributes
end

#versionObject

Returns the value of attribute version.



85
86
87
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 85

def version
  @version
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



118
119
120
121
122
123
124
125
126
127
128
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 118

def from_xml(xml_element)
	super
	self.version = xml_element.elements['version'].text
	self.ui_attributes = KalturaClientBase.object_from_xml(xml_element.elements['uiAttributes'], 'KalturaKeyValue')
	self.show_result_on_answer = xml_element.elements['showResultOnAnswer'].text
	self.show_correct_key_on_answer = xml_element.elements['showCorrectKeyOnAnswer'].text
	self.allow_answer_update = xml_element.elements['allowAnswerUpdate'].text
	self.show_correct_after_submission = xml_element.elements['showCorrectAfterSubmission'].text
	self.allow_download = xml_element.elements['allowDownload'].text
	self.show_grade_after_submission = xml_element.elements['showGradeAfterSubmission'].text
end