Class: Kaltura::Service::FlavorParamsService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::FlavorParamsService
- Defined in:
- lib/kaltura/service/flavor_params_service.rb
Overview
The Flavor Params service is responsible for adding and managing flavor params
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#add(flavor_params) ⇒ Kaltura::FlavorParams
Adds a new Flavor param.
-
#delete(id) ⇒ nil
Deletes the requested flavor param.
-
#get(id) ⇒ Kaltura::FlavorParams
Retrieves a flavor param.
-
#get_by_conversion_profile_id(conversion_profile_id) ⇒ Array
Retrieves all flavor params from a specific Conversion Profile.
-
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::FlavorParamsListResponse
Lists flavor params by filter with paging support.
-
#update(id, flavor_params) ⇒ Kaltura::FlavorParams
Updates an existing flavor params object.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#add(flavor_params) ⇒ Kaltura::FlavorParams
Adds a new Flavor param.
19 20 21 22 23 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 19 def add(flavor_params) kparams = {} client.add_param(kparams, 'flavorParams', flavor_params) perform_request('flavorParams','add',kparams,false) end |
#delete(id) ⇒ nil
Deletes the requested flavor param.
71 72 73 74 75 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 71 def delete(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorParams','delete',kparams,false) end |
#get(id) ⇒ Kaltura::FlavorParams
Retrieves a flavor param.
34 35 36 37 38 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 34 def get(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('flavorParams','get',kparams,false) end |
#get_by_conversion_profile_id(conversion_profile_id) ⇒ Array
Retrieves all flavor params from a specific Conversion Profile.
104 105 106 107 108 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 104 def get_by_conversion_profile_id(conversion_profile_id) kparams = {} client.add_param(kparams, 'conversionProfileId', conversion_profile_id) perform_request('flavorParams','getByConversionProfileId',kparams,false) end |
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::FlavorParamsListResponse
Lists flavor params by filter with paging support. In addition, all system default parameters will be listed as well.
88 89 90 91 92 93 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 88 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) perform_request('flavorParams','list',kparams,false) end |
#update(id, flavor_params) ⇒ Kaltura::FlavorParams
Updates an existing flavor params object. As with other Kaltura API update actions, it is best to instantiate a new flavor params object instead of retrieving the existing one. You only add fields for the fields you wish to change.
55 56 57 58 59 60 |
# File 'lib/kaltura/service/flavor_params_service.rb', line 55 def update(id, flavor_params) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'flavorParams', flavor_params) perform_request('flavorParams','update',kparams,false) end |