Class: Kaltura::KalturaWidgetService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaWidgetService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #add(widget) ⇒ Object
- #clone(widget) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(client) ⇒ KalturaWidgetService
constructor
A new instance of KalturaWidgetService.
- #list(filter = nil, pager = nil) ⇒ Object
- #update(id, widget) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaWidgetService
Returns a new instance of KalturaWidgetService.
5122 5123 5124 |
# File 'lib/kaltura_client.rb', line 5122 def initialize(client) super(client) end |
Instance Method Details
#add(widget) ⇒ Object
5126 5127 5128 5129 5130 5131 5132 5133 5134 |
# File 'lib/kaltura_client.rb', line 5126 def add() kparams = {} client.add_param(kparams, 'widget', ); client.queue_service_action_call('widget', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#clone(widget) ⇒ Object
5157 5158 5159 5160 5161 5162 5163 5164 5165 |
# File 'lib/kaltura_client.rb', line 5157 def clone() kparams = {} client.add_param(kparams, 'widget', ); client.queue_service_action_call('widget', 'clone', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id) ⇒ Object
5147 5148 5149 5150 5151 5152 5153 5154 5155 |
# File 'lib/kaltura_client.rb', line 5147 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('widget', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = nil, pager = nil) ⇒ Object
5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 |
# File 'lib/kaltura_client.rb', line 5167 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('widget', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, widget) ⇒ Object
5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 |
# File 'lib/kaltura_client.rb', line 5136 def update(id, ) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'widget', ); client.queue_service_action_call('widget', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |