Class: Kaltura::KalturaSearchHistoryService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_search_history_client_plugin.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaSearchHistoryService

Returns a new instance of KalturaSearchHistoryService.



89
90
91
# File 'lib/kaltura_plugins/kaltura_search_history_client_plugin.rb', line 89

def initialize(client)
	super(client)
end

Instance Method Details

#delete(search_term) ⇒ Object

Returns [].

Returns:



94
95
96
97
98
99
100
101
102
# File 'lib/kaltura_plugins/kaltura_search_history_client_plugin.rb', line 94

def delete(search_term)
	kparams = {}
	client.add_param(kparams, 'searchTerm', search_term)
	client.queue_service_action_call('searchhistory_searchhistory', 'delete', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#list(filter = KalturaNotImplemented) ⇒ KalturaESearchHistoryListResponse



105
106
107
108
109
110
111
112
113
# File 'lib/kaltura_plugins/kaltura_search_history_client_plugin.rb', line 105

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