Class: Kaltura::KalturaOptionalAnswer
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaOptionalAnswer
- 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
-
#is_correct ⇒ Object
Returns the value of attribute is_correct.
-
#key ⇒ Object
Returns the value of attribute key.
-
#text ⇒ Object
Returns the value of attribute text.
-
#weight ⇒ Object
Returns the value of attribute weight.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#is_correct ⇒ Object
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 |
#key ⇒ Object
Returns the value of attribute key.
62 63 64 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 62 def key @key end |
#text ⇒ Object
Returns the value of attribute text.
63 64 65 |
# File 'lib/kaltura_plugins/kaltura_quiz_client_plugin.rb', line 63 def text @text end |
#weight ⇒ Object
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 |