Class: Kaltura::KalturaBulkUploadCsvJobData

Inherits:
KalturaBulkUploadJobData show all
Defined in:
lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb

Overview

Represents the Bulk upload job data for xml bulk upload

Instance Attribute Summary collapse

Attributes inherited from KalturaBulkUploadJobData

#bulk_upload_object_type, #conversion_profile_id, #email_recipients, #file_name, #file_path, #num_of_entries, #num_of_error_objects, #num_of_objects, #object_data, #privileges, #results_file_local_path, #results_file_url, #type, #uploaded_by, #user_id

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#columnsObject

Array containing CSV headers



44
45
46
# File 'lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb', line 44

def columns
  @columns
end

#csv_versionObject

The version of the csv file



42
43
44
# File 'lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb', line 42

def csv_version
  @csv_version
end

#process_object_idObject

The object in process



46
47
48
# File 'lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb', line 46

def process_object_id
  @process_object_id
end

#process_object_typeObject

The type of the object in process



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

def process_object_type
  @process_object_type
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb', line 54

def from_xml(xml_element)
	super
	if xml_element.elements['csvVersion'] != nil
		self.csv_version = xml_element.elements['csvVersion'].text
	end
	if xml_element.elements['columns'] != nil
		self.columns = KalturaClientBase.object_from_xml(xml_element.elements['columns'], 'KalturaString')
	end
	if xml_element.elements['processObjectId'] != nil
		self.process_object_id = xml_element.elements['processObjectId'].text
	end
	if xml_element.elements['processObjectType'] != nil
		self.process_object_type = xml_element.elements['processObjectType'].text
	end
end