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) ⇒ Object
Adds a user_entry to the Kaltura DB.
- #delete(id) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(client) ⇒ KalturaUserEntryService
constructor
A new instance of KalturaUserEntryService.
- #list(filter, pager = KalturaNotImplemented) ⇒ Object
-
#submit_quiz(id) ⇒ Object
Submits the quiz so that it’s status will be submitted and calculates the score for the quiz.
- #update(id, user_entry) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaUserEntryService
Returns a new instance of KalturaUserEntryService.
5044 5045 5046 |
# File 'lib/kaltura_client.rb', line 5044 def initialize(client) super(client) end |
Instance Method Details
#add(user_entry) ⇒ Object
Adds a user_entry to the Kaltura DB.
5050 5051 5052 5053 5054 5055 5056 5057 5058 |
# File 'lib/kaltura_client.rb', line 5050 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 |
#delete(id) ⇒ Object
5071 5072 5073 5074 5075 5076 5077 5078 5079 |
# File 'lib/kaltura_client.rb', line 5071 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) ⇒ Object
5092 5093 5094 5095 5096 5097 5098 5099 5100 |
# File 'lib/kaltura_client.rb', line 5092 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, pager = KalturaNotImplemented) ⇒ Object
5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 |
# File 'lib/kaltura_client.rb', line 5081 def list(filter, 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) ⇒ Object
Submits the quiz so that it’s status will be submitted and calculates the score for the quiz
5104 5105 5106 5107 5108 5109 5110 5111 5112 |
# File 'lib/kaltura_client.rb', line 5104 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) ⇒ Object
5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 |
# File 'lib/kaltura_client.rb', line 5060 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', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |