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.



101
102
103
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 101

def allow_answer_update
  @allow_answer_update
end

#allow_downloadObject

Returns the value of attribute allow_download.



103
104
105
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 103

def allow_download
  @allow_download
end

#attempts_allowedObject

Returns the value of attribute attempts_allowed.



105
106
107
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 105

def attempts_allowed
  @attempts_allowed
end

#score_typeObject

Returns the value of attribute score_type.



106
107
108
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 106

def score_type
  @score_type
end

#show_correct_after_submissionObject

Returns the value of attribute show_correct_after_submission.



102
103
104
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 102

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.



100
101
102
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 100

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.



104
105
106
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 104

def show_grade_after_submission
  @show_grade_after_submission
end

#show_result_on_answerObject

Returns the value of attribute show_result_on_answer.



99
100
101
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 99

def show_result_on_answer
  @show_result_on_answer
end

#ui_attributesObject

Array of key value ui related objects



98
99
100
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 98

def ui_attributes
  @ui_attributes
end

#versionObject

Returns the value of attribute version.



96
97
98
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 96

def version
  @version
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 136

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