Class: Kaltura::KalturaWidgetService

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

Overview

widget service for full widget management

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaWidgetService

Returns a new instance of KalturaWidgetService.



14019
14020
14021
# File 'lib/kaltura_client.rb', line 14019

def initialize(client)
	super(client)
end

Instance Method Details

#add(widget) ⇒ Object

Add new widget, can be attached to entry or kshow SourceWidget is ignored.



14026
14027
14028
14029
14030
14031
14032
14033
14034
# File 'lib/kaltura_client.rb', line 14026

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

#clone(widget) ⇒ Object

Add widget based on existing widget. Must provide valid sourceWidgetId



14064
14065
14066
14067
14068
14069
14070
14071
14072
# File 'lib/kaltura_client.rb', line 14064

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

#get(id) ⇒ Object

Get widget by id



14051
14052
14053
14054
14055
14056
14057
14058
14059
# File 'lib/kaltura_client.rb', line 14051

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

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

Retrieve a list of available widget depends on the filter given



14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
# File 'lib/kaltura_client.rb', line 14076

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

#update(id, widget) ⇒ Object

Update exisiting widget



14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
# File 'lib/kaltura_client.rb', line 14038

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