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.
5382 5383 5384 |
# File 'lib/kaltura_client.rb', line 5382 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
5388 5389 5390 5391 5392 5393 5394 5395 5396 |
# File 'lib/kaltura_client.rb', line 5388 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
5399 5400 5401 5402 5403 5404 5405 5406 5407 |
# File 'lib/kaltura_client.rb', line 5399 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
5410 5411 5412 5413 5414 5415 5416 5417 5418 |
# File 'lib/kaltura_client.rb', line 5410 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
5421 5422 5423 5424 5425 5426 5427 5428 5429 |
# File 'lib/kaltura_client.rb', line 5421 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
5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 |
# File 'lib/kaltura_client.rb', line 5432 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
5445 5446 5447 5448 5449 5450 5451 5452 5453 |
# File 'lib/kaltura_client.rb', line 5445 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
5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 |
# File 'lib/kaltura_client.rb', line 5456 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 |