Class: Kaltura::KalturaUserEntryService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaUserEntryService

Returns a new instance of KalturaUserEntryService.



5309
5310
5311
# File 'lib/kaltura_client.rb', line 5309

def initialize(client)
  super(client)
end

Instance Method Details

#add(user_entry) ⇒ KalturaUserEntry

Adds a user_entry to the Kaltura DB.

Returns:



5315
5316
5317
5318
5319
5320
5321
5322
5323
# File 'lib/kaltura_client.rb', line 5315

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

Returns:

  • (int)


5326
5327
5328
5329
5330
5331
5332
5333
5334
# File 'lib/kaltura_client.rb', line 5326

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

Returns:



5337
5338
5339
5340
5341
5342
5343
5344
5345
# File 'lib/kaltura_client.rb', line 5337

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

Returns:



5348
5349
5350
5351
5352
5353
5354
5355
5356
# File 'lib/kaltura_client.rb', line 5348

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



5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
# File 'lib/kaltura_client.rb', line 5359

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



5372
5373
5374
5375
5376
5377
5378
5379
5380
# File 'lib/kaltura_client.rb', line 5372

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

Returns:



5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
# File 'lib/kaltura_client.rb', line 5383

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