Class: Kaltura::KalturaUserService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaUserService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #add(user) ⇒ Object
- #delete(user_id) ⇒ Object
- #get(user_id) ⇒ Object
-
#initialize(client) ⇒ KalturaUserService
constructor
A new instance of KalturaUserService.
- #list(filter = nil, pager = nil) ⇒ Object
- #notify_ban(user_id) ⇒ Object
- #update(user_id, user) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaUserService
Returns a new instance of KalturaUserService.
5054 5055 5056 |
# File 'lib/kaltura_client.rb', line 5054 def initialize(client) super(client) end |
Instance Method Details
#add(user) ⇒ Object
5058 5059 5060 5061 5062 5063 5064 5065 5066 |
# File 'lib/kaltura_client.rb', line 5058 def add(user) kparams = {} client.add_param(kparams, 'user', user); client.queue_service_action_call('user', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(user_id) ⇒ Object
5089 5090 5091 5092 5093 5094 5095 5096 5097 |
# File 'lib/kaltura_client.rb', line 5089 def delete(user_id) kparams = {} client.add_param(kparams, 'userId', user_id); client.queue_service_action_call('user', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(user_id) ⇒ Object
5079 5080 5081 5082 5083 5084 5085 5086 5087 |
# File 'lib/kaltura_client.rb', line 5079 def get(user_id) kparams = {} client.add_param(kparams, 'userId', user_id); client.queue_service_action_call('user', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = nil, pager = nil) ⇒ Object
5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 |
# File 'lib/kaltura_client.rb', line 5099 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('user', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#notify_ban(user_id) ⇒ Object
5110 5111 5112 5113 5114 5115 5116 5117 5118 |
# File 'lib/kaltura_client.rb', line 5110 def notify_ban(user_id) kparams = {} client.add_param(kparams, 'userId', user_id); client.queue_service_action_call('user', 'notifyBan', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(user_id, user) ⇒ Object
5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 |
# File 'lib/kaltura_client.rb', line 5068 def update(user_id, user) kparams = {} client.add_param(kparams, 'userId', user_id); client.add_param(kparams, 'user', user); client.queue_service_action_call('user', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |