Class: Kaltura::Service::ConversionProfileService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::ConversionProfileService
- Defined in:
- lib/kaltura/service/conversion_profile_service.rb
Overview
The Conversion Profile Service is responsible for adding and managing conversion profiles.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#add(conversion_profile) ⇒ Kaltura::ConversionProfile
Adds a new conversion profile.
-
#delete(id) ⇒ nil
Deletes a conversion profile by ID.
-
#get(id) ⇒ Kaltura::ConversionProfile
Retrieves a conversion profile by ID.
-
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::ConversionProfileListResponse
Lists conversion profiles given a filter with paging support for larger result sets.
-
#update(id, conversion_profile) ⇒ Kaltura::ConversionProfile
Updates a conversion profile given an ID and a newly instantiated ConversionProfile.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#add(conversion_profile) ⇒ Kaltura::ConversionProfile
Adds a new conversion profile.
43 44 45 46 47 |
# File 'lib/kaltura/service/conversion_profile_service.rb', line 43 def add(conversion_profile) kparams = {} client.add_param(kparams, 'conversionProfile', conversion_profile) perform_request('conversionProfile','add',kparams,false) end |
#delete(id) ⇒ nil
Deletes a conversion profile by ID.
92 93 94 95 96 |
# File 'lib/kaltura/service/conversion_profile_service.rb', line 92 def delete(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('conversionProfile','delete',kparams,false) end |
#get(id) ⇒ Kaltura::ConversionProfile
Retrieves a conversion profile by ID.
58 59 60 61 62 |
# File 'lib/kaltura/service/conversion_profile_service.rb', line 58 def get(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('conversionProfile','get',kparams,false) end |
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::ConversionProfileListResponse
Lists conversion profiles given a filter with paging support for larger result sets.
108 109 110 111 112 113 |
# File 'lib/kaltura/service/conversion_profile_service.rb', line 108 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) perform_request('conversionProfile','list',kparams,false) end |
#update(id, conversion_profile) ⇒ Kaltura::ConversionProfile
Updates a conversion profile given an ID and a newly instantiated ConversionProfile. It will update any populated fields on the provided profile.
76 77 78 79 80 81 |
# File 'lib/kaltura/service/conversion_profile_service.rb', line 76 def update(id, conversion_profile) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'conversionProfile', conversion_profile) perform_request('conversionProfile','update',kparams,false) end |