Class: Kaltura::KalturaCategoryService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaCategoryService

Returns a new instance of KalturaCategoryService.



3640
3641
3642
# File 'lib/kaltura_client.rb', line 3640

def initialize(client)
	super(client)
end

Instance Method Details

#add(category) ⇒ Object



3644
3645
3646
3647
3648
3649
3650
3651
3652
# File 'lib/kaltura_client.rb', line 3644

def add(category)
	kparams = {}
	client.add_param(kparams, 'category', category);
	client.queue_service_action_call('category', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object



3675
3676
3677
3678
3679
3680
3681
3682
3683
# File 'lib/kaltura_client.rb', line 3675

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('category', 'delete', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(id) ⇒ Object



3654
3655
3656
3657
3658
3659
3660
3661
3662
# File 'lib/kaltura_client.rb', line 3654

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('category', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#list(filter = nil) ⇒ Object



3685
3686
3687
3688
3689
3690
3691
3692
3693
# File 'lib/kaltura_client.rb', line 3685

def list(filter=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter);
	client.queue_service_action_call('category', 'list', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(id, category) ⇒ Object



3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
# File 'lib/kaltura_client.rb', line 3664

def update(id, category)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'category', category);
	client.queue_service_action_call('category', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end