Class: Kaltura::KalturaKalturaInternalToolsSystemHelperService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaKalturaInternalToolsSystemHelperService
- Defined in:
- lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb
Overview
Internal Tools Service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#from_secure_string(str) ⇒ Object
KS from Secure String.
- #get_remote_address ⇒ Object
-
#initialize(client) ⇒ KalturaKalturaInternalToolsSystemHelperService
constructor
A new instance of KalturaKalturaInternalToolsSystemHelperService.
-
#iptocountry(remote_addr) ⇒ Object
from ip to country.
Constructor Details
#initialize(client) ⇒ KalturaKalturaInternalToolsSystemHelperService
Returns a new instance of KalturaKalturaInternalToolsSystemHelperService.
73 74 75 |
# File 'lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb', line 73 def initialize(client) super(client) end |
Instance Method Details
#from_secure_string(str) ⇒ Object
KS from Secure String
79 80 81 82 83 84 85 86 87 |
# File 'lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb', line 79 def from_secure_string(str) kparams = {} client.add_param(kparams, 'str', str) client.queue_service_action_call('kalturainternaltools_kalturainternaltoolssystemhelper', 'fromSecureString', 'KalturaInternalToolsSession', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_remote_address ⇒ Object
101 102 103 104 105 106 107 108 |
# File 'lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb', line 101 def get_remote_address() kparams = {} client.queue_service_action_call('kalturainternaltools_kalturainternaltoolssystemhelper', 'getRemoteAddress', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#iptocountry(remote_addr) ⇒ Object
from ip to country
91 92 93 94 95 96 97 98 99 |
# File 'lib/kaltura_plugins/kaltura_kaltura_internal_tools_client_plugin.rb', line 91 def iptocountry(remote_addr) kparams = {} client.add_param(kparams, 'remote_addr', remote_addr) client.queue_service_action_call('kalturainternaltools_kalturainternaltoolssystemhelper', 'iptocountry', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |