Module: JiraClient::API::Users
Instance Method Summary collapse
Instance Method Details
#current_user ⇒ Object
16 17 18 19 20 |
# File 'lib/jira_client/api/users.rb', line 16 def current_user request = resource(JiraClient.configuration.base_url) response = request["/rest/gadget/1.0/currentUser"].get JiraClient::User.from_response snake_case!(JSON.parse(response, :symbolize_names => true)) end |
#find_user_by_username(username) ⇒ Object
12 13 14 |
# File 'lib/jira_client/api/users.rb', line 12 def find_user_by_username(username) object_from_response(JiraClient::User, :get, "/user", :username => username) end |
#find_users(username) ⇒ Object
8 9 10 |
# File 'lib/jira_client/api/users.rb', line 8 def find_users(username) objects_from_response(JiraClient::User, :get, "/user/search", :username => username) end |