Class: Forem::Services::UserService
- Inherits:
-
BaseService
- Object
- BaseService
- Forem::Services::UserService
- Defined in:
- lib/forem/services/user_service.rb
Overview
Service for interacting with the Forem Users API.
Access via Client#users. All methods inject the client's requestor automatically so no additional configuration is required.
Instance Method Summary collapse
-
#me(opts = {}) ⇒ User
Retrieve the profile of the currently authenticated user.
-
#retrieve(id, opts = {}) ⇒ User
Retrieve a single user by their numeric ID.
-
#search(params = {}, opts = {}) ⇒ Array<User>
Search for users by name or username.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Forem::Services::BaseService
Instance Method Details
#me(opts = {}) ⇒ User
Retrieve the profile of the currently authenticated user.
41 42 43 |
# File 'lib/forem/services/user_service.rb', line 41 def me(opts = {}) User.me(opts_with_requestor(opts)) end |