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.
178 179 180 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 178 def format @format end |
#is_default ⇒ Object
Returns the value of attribute is_default.
182 183 184 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 182 def is_default @is_default end |
#label ⇒ Object
Returns the value of attribute label.
177 178 179 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 177 def label @label end |
#language ⇒ Object
Returns the value of attribute language.
179 180 181 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 179 def language @language end |
#language_code ⇒ Object
Returns the value of attribute language_code.
183 184 185 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 183 def language_code @language_code end |
#url ⇒ Object
Returns the value of attribute url.
181 182 183 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 181 def url @url end |
#web_vtt_url ⇒ Object
Returns the value of attribute web_vtt_url.
180 181 182 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 180 def web_vtt_url @web_vtt_url end |
Instance Method Details
#from_xml(xml_element) ⇒ Object
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 189 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 |