Class: Kaltura::KalturaFtpDistributionFile
- Inherits:
-
KalturaObjectBase
- Object
- KalturaObjectBase
- Kaltura::KalturaFtpDistributionFile
- Defined in:
- lib/kaltura_plugins/kaltura_ftp_distribution_client_plugin.rb
Instance Attribute Summary collapse
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#local_file_path ⇒ Object
Returns the value of attribute local_file_path.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from KalturaObjectBase
#object_type, #related_objects
Instance Method Summary collapse
Methods inherited from KalturaObjectBase
Instance Attribute Details
#asset_id ⇒ Object
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 |
#contents ⇒ Object
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 |
#filename ⇒ Object
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 |
#hash ⇒ Object
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_path ⇒ Object
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 |
#version ⇒ Object
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 |