Class: Kaltura::KalturaFtpDistributionFile

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_ftp_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

#asset_idObject

Returns the value of attribute asset_id.



47
48
49
# File 'lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb', line 47

def asset_id
  @asset_id
end

#contentsObject

Returns the value of attribute contents.



49
50
51
# File 'lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb', line 49

def contents
  @contents
end

#filenameObject

Returns the value of attribute filename.



48
49
50
# File 'lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb', line 48

def filename
  @filename
end

#hashObject

Returns the value of attribute hash.



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

def hash
  @hash
end

#local_file_pathObject

Returns the value of attribute local_file_path.



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

def local_file_path
  @local_file_path
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb', line 55

def from_xml(xml_element)
	super
	if xml_element.elements['assetId'] != nil
		self.asset_id = xml_element.elements['assetId'].text
	end
	if xml_element.elements['filename'] != nil
		self.filename = xml_element.elements['filename'].text
	end
	if xml_element.elements['contents'] != nil
		self.contents = xml_element.elements['contents'].text
	end
	if xml_element.elements['localFilePath'] != nil
		self.local_file_path = xml_element.elements['localFilePath'].text
	end
	if xml_element.elements['version'] != nil
		self.version = xml_element.elements['version'].text
	end
	if xml_element.elements['hash'] != nil
		self.hash = xml_element.elements['hash'].text
	end
end