Class: Kaltura::KalturaCaptionAsset

Inherits:
KalturaAsset show all
Defined in:
lib/kaltura_plugins/kaltura_caption_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaAsset

#actual_source_asset_params_ids, #created_at, #deleted_at, #description, #entry_id, #file_ext, #id, #partner_data, #partner_description, #partner_id, #size, #tags, #updated_at, #version

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#accuracyObject

The Accuracy of the caption content



88
89
90
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 88

def accuracy
  @accuracy
end

#caption_params_idObject

The Caption Params used to create this Caption Asset



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

def caption_params_id
  @caption_params_id
end

#formatObject

The caption format



79
80
81
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 79

def format
  @format
end

#is_defaultObject

Is default caption asset of the entry



73
74
75
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 73

def is_default
  @is_default
end

#labelObject

Friendly label



76
77
78
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 76

def label
  @label
end

#languageObject

The language of the caption asset content



67
68
69
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 67

def language
  @language
end

#language_codeObject

The language of the caption asset content



70
71
72
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 70

def language_code
  @language_code
end

#parent_idObject

The parent id of the asset



85
86
87
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 85

def parent_id
  @parent_id
end

#statusObject

The status of the asset



82
83
84
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 82

def status
  @status
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 103

def from_xml(xml_element)
	super
	self.caption_params_id = xml_element.elements['captionParamsId'].text
	self.language = xml_element.elements['language'].text
	self.language_code = xml_element.elements['languageCode'].text
	self.is_default = xml_element.elements['isDefault'].text
	self.label = xml_element.elements['label'].text
	self.format = xml_element.elements['format'].text
	self.status = xml_element.elements['status'].text
	self.parent_id = xml_element.elements['parentId'].text
	self.accuracy = xml_element.elements['accuracy'].text
end