Class: Kaltura::KalturaCaptionPlaybackPluginData
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaCaptionPlaybackPluginData
- Defined in:
- lib/kaltura_plugins/kaltura_caption_client_plugin.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#is_default ⇒ Object
Returns the value of attribute is_default.
-
#label ⇒ Object
Returns the value of attribute label.
-
#language ⇒ Object
Returns the value of attribute language.
-
#language_code ⇒ Object
Returns the value of attribute language_code.
-
#url ⇒ Object
Returns the value of attribute url.
-
#web_vtt_url ⇒ Object
Returns the value of attribute web_vtt_url.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
195 196 197 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 195 def format @format end |
#is_default ⇒ Object
Returns the value of attribute is_default.
199 200 201 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 199 def is_default @is_default end |
#label ⇒ Object
Returns the value of attribute label.
194 195 196 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 194 def label @label end |
#language ⇒ Object
Returns the value of attribute language.
196 197 198 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 196 def language @language end |
#language_code ⇒ Object
Returns the value of attribute language_code.
200 201 202 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 200 def language_code @language_code end |
#url ⇒ Object
Returns the value of attribute url.
198 199 200 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 198 def url @url end |
#web_vtt_url ⇒ Object
Returns the value of attribute web_vtt_url.
197 198 199 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 197 def web_vtt_url @web_vtt_url end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 206 def from_xml(xml_element) super if xml_element.elements['label'] != nil self.label = xml_element.elements['label'].text end if xml_element.elements['format'] != nil self.format = xml_element.elements['format'].text end if xml_element.elements['language'] != nil self.language = xml_element.elements['language'].text end if xml_element.elements['webVttUrl'] != nil self.web_vtt_url = xml_element.elements['webVttUrl'].text end if xml_element.elements['url'] != nil self.url = xml_element.elements['url'].text end if xml_element.elements['isDefault'] != nil self.is_default = xml_element.elements['isDefault'].text end if xml_element.elements['languageCode'] != nil self.language_code = xml_element.elements['languageCode'].text end end |