Class: Kaltura::KalturaDataService

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) ⇒ KalturaDataService

Returns a new instance of KalturaDataService.



3755
3756
3757
# File 'lib/kaltura_client.rb', line 3755

def initialize(client)
	super(client)
end

Instance Method Details

#add(data_entry) ⇒ Object



3759
3760
3761
3762
3763
3764
3765
3766
3767
# File 'lib/kaltura_client.rb', line 3759

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

#delete(entry_id) ⇒ Object



3791
3792
3793
3794
3795
3796
3797
3798
3799
# File 'lib/kaltura_client.rb', line 3791

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

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



3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
# File 'lib/kaltura_client.rb', line 3769

def get(entry_id, version=-1)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'version', version);
	client.queue_service_action_call('data', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

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



3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
# File 'lib/kaltura_client.rb', line 3801

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

#update(entry_id, document_entry) ⇒ Object



3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
# File 'lib/kaltura_client.rb', line 3780

def update(entry_id, document_entry)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'documentEntry', document_entry);
	client.queue_service_action_call('data', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end