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) ⇒ Object
Add new widget, can be attached to entry or kshow SourceWidget is ignored.
-
#clone(widget) ⇒ Object
Add widget based on existing widget.
-
#get(id) ⇒ Object
Get widget by id.
-
#initialize(client) ⇒ KalturaWidgetService
constructor
A new instance of KalturaWidgetService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
Retrieve a list of available widget depends on the filter given.
-
#update(id, widget) ⇒ Object
Update exisiting widget.
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() kparams = {} client.add_param(kparams, '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() kparams = {} client.add_param(kparams, '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, ) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'widget', ); client.queue_service_action_call('widget', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |