Class: Kaltura::Service::DataService

Inherits:
BaseService show all
Defined in:
lib/kaltura/service/data_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(data_entry) ⇒ Object



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

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

#delete(entry_id) ⇒ Object



25
26
27
28
29
# File 'lib/kaltura/service/data_service.rb', line 25

def delete(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	perform_request('data','delete',kparams,false)
end

#get(entry_id, version = -1)) ⇒ Object



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

def get(entry_id, version=-1)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'version', version)
	perform_request('data','get',kparams,false)
end

#list(filter = nil, pager = nil) ⇒ Object



31
32
33
34
35
36
# File 'lib/kaltura/service/data_service.rb', line 31

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

#update(entry_id, document_entry) ⇒ Object



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

def update(entry_id, document_entry)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'documentEntry', document_entry)
	perform_request('data','update',kparams,false)
end