Class: Kaltura::KalturaOptionalAnswer

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

Overview

A representation of an optional answer for question cue point

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

#is_correctObject

Returns the value of attribute is_correct.



65
66
67
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 65

def is_correct
  @is_correct
end

#keyObject

Returns the value of attribute key.



62
63
64
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 62

def key
  @key
end

#textObject

Returns the value of attribute text.



63
64
65
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 63

def text
  @text
end

#weightObject

Returns the value of attribute weight.



64
65
66
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 64

def weight
  @weight
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 74

def from_xml(xml_element)
	super
	self.key = xml_element.elements['key'].text
	self.text = xml_element.elements['text'].text
	self.weight = xml_element.elements['weight'].text
	self.is_correct = xml_element.elements['isCorrect'].text
end