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.
5324 5325 5326 |
# File 'lib/kaltura_client.rb', line 5324 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
5330 5331 5332 5333 5334 5335 5336 5337 5338 |
# File 'lib/kaltura_client.rb', line 5330 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
5341 5342 5343 5344 5345 5346 5347 5348 5349 |
# File 'lib/kaltura_client.rb', line 5341 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
5352 5353 5354 5355 5356 5357 5358 5359 5360 |
# File 'lib/kaltura_client.rb', line 5352 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
5363 5364 5365 5366 5367 5368 5369 5370 5371 |
# File 'lib/kaltura_client.rb', line 5363 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
5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 |
# File 'lib/kaltura_client.rb', line 5374 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
5387 5388 5389 5390 5391 5392 5393 5394 5395 |
# File 'lib/kaltura_client.rb', line 5387 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
5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 |
# File 'lib/kaltura_client.rb', line 5398 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 |