Method: Code42::API::User#user_exists?

Defined in:
lib/code42/api/user.rb

#user_exists?(username) ⇒ Boolean

Check if user exists with given username.

Returns:

  • (Boolean)


63
64
65
# File 'lib/code42/api/user.rb', line 63

def user_exists?(username)
  users(username: username).present?
end