Module: Epitech::Api::InfoApi

Included in:
Connection
Defined in:
lib/api/info_api.rb

Instance Method Summary collapse

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')

Parameters:

  • login (String)

    The login to look for

Returns:

  • (Hash)

    The corresponding infos



23
24
25
# File 'lib/api/info_api.rb', line 23

def get_infos()
  call_api(action: 'get_infos', login: )
end

#get_login_from_uid(uid) ⇒ String

Get a Ionis login from a UID

Parameters:

  • uid (String, Integer)

    The UID to look for

Returns:

  • (String)

    The corresponding login



6
7
8
# File 'lib/api/info_api.rb', line 6

def (uid)
  call_api(action: 'get_login_from_uid', uid: uid)['login']
end