Class: Kaltura::KalturaYouTubeApiCaptionDistributionInfo

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

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

#actionObject

Returns the value of attribute action.



54
55
56
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 54

def action
  @action
end

#asset_idObject

Returns the value of attribute asset_id.



56
57
58
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 56

def asset_id
  @asset_id
end

#file_pathObject

Returns the value of attribute file_path.



52
53
54
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 52

def file_path
  @file_path
end

#labelObject

Returns the value of attribute label.



51
52
53
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 51

def label
  @label
end

#languageObject

Returns the value of attribute language.



50
51
52
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 50

def language
  @language
end

#remote_idObject

Returns the value of attribute remote_id.



53
54
55
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 53

def remote_id
  @remote_id
end

#versionObject

Returns the value of attribute version.



55
56
57
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 55

def version
  @version
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/kaltura_plugins/kaltura_youtube_api_distribution_client_plugin.rb', line 62

def from_xml(xml_element)
	super
	if xml_element.elements['language'] != nil
		self.language = xml_element.elements['language'].text
	end
	if xml_element.elements['label'] != nil
		self.label = xml_element.elements['label'].text
	end
	if xml_element.elements['filePath'] != nil
		self.file_path = xml_element.elements['filePath'].text
	end
	if xml_element.elements['remoteId'] != nil
		self.remote_id = xml_element.elements['remoteId'].text
	end
	if xml_element.elements['action'] != nil
		self.action = xml_element.elements['action'].text
	end
	if xml_element.elements['version'] != nil
		self.version = xml_element.elements['version'].text
	end
	if xml_element.elements['assetId'] != nil
		self.asset_id = xml_element.elements['assetId'].text
	end
end