Class: PsuIdentity::SearchService::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/psu_identity/search_service/client.rb

Instance Method Summary collapse

Instance Method Details

#search(**args) ⇒ Object

Options Hash (**args):

  • :text (String)

    to search for



12
13
14
# File 'lib/psu_identity/search_service/client.rb', line 12

def search(**args)
  process_response connection.get('/people', args)
end

#userid(userid) ⇒ Object



18
19
20
# File 'lib/psu_identity/search_service/client.rb', line 18

def userid(userid)
  process_userid_response connection.get("/people/userid/#{userid}")
end