Class: Kaltura::Service::CategoryService

Inherits:
BaseService show all
Defined in:
lib/kaltura/service/category_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Kaltura::Service::BaseService

Instance Method Details

#add(category) ⇒ Object



5
6
7
8
9
# File 'lib/kaltura/service/category_service.rb', line 5

def add(category)
	kparams = {}
	client.add_param(kparams, 'category', category)
	perform_request('category','add',kparams,false)
end

#delete(id) ⇒ Object



24
25
26
27
28
# File 'lib/kaltura/service/category_service.rb', line 24

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	perform_request('category','delete',kparams,false)
end

#get(id) ⇒ Object



11
12
13
14
15
# File 'lib/kaltura/service/category_service.rb', line 11

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	perform_request('category','get',kparams,false)
end

#list(filter = nil) ⇒ Object



30
31
32
33
34
# File 'lib/kaltura/service/category_service.rb', line 30

def list(filter=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	perform_request('category','list',kparams,false)
end

#update(id, category) ⇒ Object



17
18
19
20
21
22
# File 'lib/kaltura/service/category_service.rb', line 17

def update(id, category)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'category', category)
	perform_request('category','update',kparams,false)
end