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) ⇒ Object
Add new Caption Params.
-
#delete(id) ⇒ Object
Delete Caption Params by ID.
-
#get(id) ⇒ Object
Get Caption Params by ID.
-
#initialize(client) ⇒ KalturaCaptionParamsService
constructor
A new instance of KalturaCaptionParamsService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List Caption Params by filter with paging support (By default - all system default params will be listed too).
-
#update(id, caption_params) ⇒ Object
Update Caption Params by ID.
Constructor Details
#initialize(client) ⇒ KalturaCaptionParamsService
Returns a new instance of KalturaCaptionParamsService.
322 323 324 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 322 def initialize(client) super(client) end |
Instance Method Details
#add(caption_params) ⇒ Object
Add new Caption Params
328 329 330 331 332 333 334 335 336 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 328 def add() kparams = {} client.add_param(kparams, 'captionParams', ); client.queue_service_action_call('caption_captionparams', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Caption Params by ID
365 366 367 368 369 370 371 372 373 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 365 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) ⇒ Object
Get Caption Params by ID
340 341 342 343 344 345 346 347 348 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 340 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('caption_captionparams', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List Caption Params by filter with paging support (By default - all system default params will be listed too)
377 378 379 380 381 382 383 384 385 386 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 377 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', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, caption_params) ⇒ Object
Update Caption Params by ID
352 353 354 355 356 357 358 359 360 361 |
# File 'lib/kaltura_plugins/kaltura_caption_client_plugin.rb', line 352 def update(id, ) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'captionParams', ); client.queue_service_action_call('caption_captionparams', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |