Class: Kaltura::KalturaWidgetService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaWidgetService
- Defined in:
- lib/kaltura_client.rb
Overview
widget service for full widget management
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(widget) ⇒ KalturaWidget
Add new widget, can be attached to entry or kshow SourceWidget is ignored.
-
#clone(widget) ⇒ KalturaWidget
Add widget based on existing widget.
-
#get(id) ⇒ KalturaWidget
Get widget by id.
-
#initialize(client) ⇒ KalturaWidgetService
constructor
A new instance of KalturaWidgetService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaWidgetListResponse
Retrieve a list of available widget depends on the filter given.
-
#update(id, widget) ⇒ KalturaWidget
Update existing widget.
Constructor Details
#initialize(client) ⇒ KalturaWidgetService
Returns a new instance of KalturaWidgetService.
5684 5685 5686 |
# File 'lib/kaltura_client.rb', line 5684 def initialize(client) super(client) end |
Instance Method Details
#add(widget) ⇒ KalturaWidget
Add new widget, can be attached to entry or kshow SourceWidget is ignored.
5691 5692 5693 5694 5695 5696 5697 5698 5699 |
# File 'lib/kaltura_client.rb', line 5691 def add() kparams = {} client.add_param(kparams, 'widget', ) client.queue_service_action_call('widget', 'add', 'KalturaWidget', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#clone(widget) ⇒ KalturaWidget
Add widget based on existing widget. Must provide valid sourceWidgetId
5704 5705 5706 5707 5708 5709 5710 5711 5712 |
# File 'lib/kaltura_client.rb', line 5704 def clone() kparams = {} client.add_param(kparams, 'widget', ) client.queue_service_action_call('widget', 'clone', 'KalturaWidget', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaWidget
Get widget by id
5716 5717 5718 5719 5720 5721 5722 5723 5724 |
# File 'lib/kaltura_client.rb', line 5716 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('widget', 'get', 'KalturaWidget', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaWidgetListResponse
Retrieve a list of available widget depends on the filter given
5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 |
# File 'lib/kaltura_client.rb', line 5728 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', 'KalturaWidgetListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, widget) ⇒ KalturaWidget
Update existing widget
5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 |
# File 'lib/kaltura_client.rb', line 5741 def update(id, ) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'widget', ) client.queue_service_action_call('widget', 'update', 'KalturaWidget', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |