Class: Kaltura::KalturaThumbnailService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaThumbnailService
- Defined in:
- lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#initialize(client) ⇒ KalturaThumbnailService
constructor
A new instance of KalturaThumbnailService.
-
#transform(transform_string) ⇒ Object
Retrieves a thumbnail according to the required transformation.
Constructor Details
#initialize(client) ⇒ KalturaThumbnailService
Returns a new instance of KalturaThumbnailService.
35 36 37 |
# File 'lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb', line 35 def initialize(client) super(client) end |
Instance Method Details
#transform(transform_string) ⇒ Object
Retrieves a thumbnail according to the required transformation
41 42 43 44 45 46 47 48 49 |
# File 'lib/kaltura_plugins/kaltura_thumbnail_client_plugin.rb', line 41 def transform(transform_string) kparams = {} client.add_param(kparams, 'transformString', transform_string) client.queue_service_action_call('thumbnail_thumbnail', 'transform', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |