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.
5246 5247 5248 |
# File 'lib/kaltura_client.rb', line 5246 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ KalturaUserEntry
Adds a user_entry to the Kaltura DB.
5252 5253 5254 5255 5256 5257 5258 5259 5260 |
# File 'lib/kaltura_client.rb', line 5252 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
5263 5264 5265 5266 5267 5268 5269 5270 5271 |
# File 'lib/kaltura_client.rb', line 5263 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
5274 5275 5276 5277 5278 5279 5280 5281 5282 |
# File 'lib/kaltura_client.rb', line 5274 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
5285 5286 5287 5288 5289 5290 5291 5292 5293 |
# File 'lib/kaltura_client.rb', line 5285 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
5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 |
# File 'lib/kaltura_client.rb', line 5296 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
5309 5310 5311 5312 5313 5314 5315 5316 5317 |
# File 'lib/kaltura_client.rb', line 5309 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
5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 |
# File 'lib/kaltura_client.rb', line 5320 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 |