Class: Kaltura::KalturaUserEntryService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaUserEntryService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
- #bulk_delete(filter) ⇒ int
- #delete(id) ⇒ KalturaUserEntry
- #get(id) ⇒ KalturaUserEntry
-
#initialize(client) ⇒ KalturaUserEntryService
constructor
A new instance of KalturaUserEntryService.
- #list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaUserEntryListResponse
-
#submit_quiz(id) ⇒ KalturaQuizUserEntry
Submits the quiz so that it’s status will be submitted and calculates the score for the quiz.
- #update(id, user_entry) ⇒ KalturaUserEntry
Constructor Details
#initialize(client) ⇒ KalturaUserEntryService
Returns a new instance of KalturaUserEntryService.
5236 5237 5238 |
# File 'lib/kaltura_client.rb', line 5236 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
5242 5243 5244 5245 5246 5247 5248 5249 5250 |
# File 'lib/kaltura_client.rb', line 5242 def add(user_entry) kparams = {} client.add_param(kparams, 'userEntry', user_entry) client.queue_service_action_call('userentry', 'add', 'KalturaUserEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#bulk_delete(filter) ⇒ int
5253 5254 5255 5256 5257 5258 5259 5260 5261 |
# File 'lib/kaltura_client.rb', line 5253 def bulk_delete(filter) kparams = {} client.add_param(kparams, 'filter', filter) client.queue_service_action_call('userentry', 'bulkDelete', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ KalturaUserEntry
5264 5265 5266 5267 5268 5269 5270 5271 5272 |
# File 'lib/kaltura_client.rb', line 5264 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('userentry', 'delete', 'KalturaUserEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaUserEntry
5275 5276 5277 5278 5279 5280 5281 5282 5283 |
# File 'lib/kaltura_client.rb', line 5275 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('userentry', 'get', 'KalturaUserEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaUserEntryListResponse
5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 |
# File 'lib/kaltura_client.rb', line 5286 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('userentry', 'list', 'KalturaUserEntryListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#submit_quiz(id) ⇒ KalturaQuizUserEntry
Submits the quiz so that it’s status will be submitted and calculates the score for the quiz
5299 5300 5301 5302 5303 5304 5305 5306 5307 |
# File 'lib/kaltura_client.rb', line 5299 def submit_quiz(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('userentry', 'submitQuiz', 'KalturaQuizUserEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, user_entry) ⇒ KalturaUserEntry
5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 |
# File 'lib/kaltura_client.rb', line 5310 def update(id, user_entry) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'userEntry', user_entry) client.queue_service_action_call('userentry', 'update', 'KalturaUserEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |