Module: TestRail::Client::Users

Included in:
API
Defined in:
lib/testrail_api/client/users.rb

Overview

Methods for the Users API

Instance Method Summary collapse

Instance Method Details

#user(user_id) ⇒ Object

Returns an existing user.

:user_id The ID of the user



12
13
14
# File 'lib/testrail_api/client/users.rb', line 12

def user(user_id)
  get("get_user/#{user_id}")
end

#user_by_email(email) ⇒ Object

Returns an existing user by his/her email address.

:email The email address to get the user for



28
29
30
# File 'lib/testrail_api/client/users.rb', line 28

def user_by_email(email)
  get("get_user_by_email&email=#{email}")
end

#usersObject

Returns a list of users.



19
20
21
# File 'lib/testrail_api/client/users.rb', line 19

def users
  get('get_users')
end