Class: Kaltura::KalturaModifyCategoriesObjectTask

Inherits:
KalturaObjectTask show all
Defined in:
lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectTask

#stop_processing_on_error, #type

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#add_remove_typeObject

Should the object task add or remove categories?



219
220
221
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 219

def add_remove_type
  @add_remove_type
end

#category_idsObject

The list of category ids to add or remove



222
223
224
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 222

def category_ids
  @category_ids
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



228
229
230
231
232
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 228

def from_xml(xml_element)
	super
	self.add_remove_type = xml_element.elements['addRemoveType'].text
	self.category_ids = KalturaClientBase.object_from_xml(xml_element.elements['categoryIds'], 'KalturaIntegerValue')
end