Class: Kaltura::Service::WidgetService

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



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

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

#clone(widget) ⇒ Object



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

def clone(widget)
	kparams = {}
	client.add_param(kparams, 'widget', widget)
	perform_request('widget','clone',kparams,false)
end

#get(id) ⇒ Object



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

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

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



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

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

#update(id, widget) ⇒ Object



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

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