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?



304
305
306
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 304

def add_remove_type
  @add_remove_type
end

#category_idsObject

The list of category ids to add or remove



306
307
308
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 306

def category_ids
  @category_ids
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



312
313
314
315
316
317
318
319
320
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 312

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