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.
5855 5856 5857 |
# File 'lib/kaltura_client.rb', line 5855 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.
5862 5863 5864 5865 5866 5867 5868 5869 5870 |
# File 'lib/kaltura_client.rb', line 5862 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
5875 5876 5877 5878 5879 5880 5881 5882 5883 |
# File 'lib/kaltura_client.rb', line 5875 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
5887 5888 5889 5890 5891 5892 5893 5894 5895 |
# File 'lib/kaltura_client.rb', line 5887 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
5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 |
# File 'lib/kaltura_client.rb', line 5899 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
5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 |
# File 'lib/kaltura_client.rb', line 5912 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 |