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.
5365 5366 5367 |
# File 'lib/kaltura_client.rb', line 5365 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
5371 5372 5373 5374 5375 5376 5377 5378 5379 |
# File 'lib/kaltura_client.rb', line 5371 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
5382 5383 5384 5385 5386 5387 5388 5389 5390 |
# File 'lib/kaltura_client.rb', line 5382 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
5393 5394 5395 5396 5397 5398 5399 5400 5401 |
# File 'lib/kaltura_client.rb', line 5393 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
5404 5405 5406 5407 5408 5409 5410 5411 5412 |
# File 'lib/kaltura_client.rb', line 5404 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
5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 |
# File 'lib/kaltura_client.rb', line 5415 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
5428 5429 5430 5431 5432 5433 5434 5435 5436 |
# File 'lib/kaltura_client.rb', line 5428 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
5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 |
# File 'lib/kaltura_client.rb', line 5439 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 |