Module: Epitech::Api::InfoApi
- Included in:
- Connection
- Defined in:
- lib/api/info_api.rb
Instance Method Summary collapse
-
#get_infos(login) ⇒ Hash
Get all the infos about a Ionis login Each information can be retrieved separately through the get_xxx method example: connection.get_name(‘exampl_e’) connection.get_uid(‘exampl_e’).
-
#get_login_from_uid(uid) ⇒ String
Get a Ionis login from a UID.
Instance Method Details
#get_infos(login) ⇒ Hash
Get all the infos about a Ionis login Each information can be retrieved separately through the get_xxx method example:
connection.get_name('exampl_e')
connection.get_uid('exampl_e')
23 24 25 |
# File 'lib/api/info_api.rb', line 23 def get_infos(login) call_api(action: 'get_infos', login: login) end |
#get_login_from_uid(uid) ⇒ String
Get a Ionis login from a UID
6 7 8 |
# File 'lib/api/info_api.rb', line 6 def get_login_from_uid(uid) call_api(action: 'get_login_from_uid', uid: uid)['login'] end |