Module: Epitech::Api::SearchApi
- Included in:
- Connection
- Defined in:
- lib/api/search_api.rb
Instance Method Summary collapse
-
#get_logins(opts = {}) ⇒ Array
Used to search logins across the Ionis users through 3 criterias : * Schoolname * Promo * City.
-
#search(query) ⇒ Array
Used to search across the Ionis users.
Instance Method Details
#get_logins(opts = {}) ⇒ Array
Used to search logins across the Ionis users through 3 criterias :
-
Schoolname
-
Promo
-
City
17 18 19 |
# File 'lib/api/search_api.rb', line 17 def get_logins(opts={}) call_api(action: 'get_logins', school: opts[:school], promo: opts[:promo], city: opts[:city]) end |
#search(query) ⇒ Array
Used to search across the Ionis users
7 8 9 |
# File 'lib/api/search_api.rb', line 7 def search(query) call_api(action: 'search', query: query) end |