Class: Kaltura::KalturaCaptionParamsService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaCaptionParamsService
- Defined in:
- lib/kaltura_plugins/kaltura_caption_client_plugin.rb
Overview
Add & Manage Caption Params
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(caption_params) ⇒ KalturaCaptionParams
Add new Caption Params.
-
#delete(id) ⇒ Object
Delete Caption Params by ID.
-
#get(id) ⇒ KalturaCaptionParams
Get Caption Params by ID.
-
#initialize(client) ⇒ KalturaCaptionParamsService
constructor
A new instance of KalturaCaptionParamsService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaCaptionParamsListResponse
List Caption Params by filter with paging support (By default - all system default params will be listed too).
-
#update(id, caption_params) ⇒ KalturaCaptionParams
Update Caption Params by ID.
Constructor Details
#initialize(client) ⇒ KalturaCaptionParamsService
Returns a new instance of KalturaCaptionParamsService.
591 592 593 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 591 def initialize(client) super(client) end |
Instance Method Details
#add(caption_params) ⇒ KalturaCaptionParams
Add new Caption Params
597 598 599 600 601 602 603 604 605 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 597 def add() kparams = {} client.add_param(kparams, 'captionParams', ) client.queue_service_action_call('caption_captionparams', 'add', 'KalturaCaptionParams', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete Caption Params by ID
609 610 611 612 613 614 615 616 617 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 609 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('caption_captionparams', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaCaptionParams
Get Caption Params by ID
621 622 623 624 625 626 627 628 629 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 621 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('caption_captionparams', 'get', 'KalturaCaptionParams', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaCaptionParamsListResponse
List Caption Params by filter with paging support (By default - all system default params will be listed too)
633 634 635 636 637 638 639 640 641 642 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 633 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('caption_captionparams', 'list', 'KalturaCaptionParamsListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, caption_params) ⇒ KalturaCaptionParams
Update Caption Params by ID
646 647 648 649 650 651 652 653 654 655 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 646 def update(id, ) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'captionParams', ) client.queue_service_action_call('caption_captionparams', 'update', 'KalturaCaptionParams', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |