Module: Closeio::Client::User

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/user.rb

Instance Method Summary collapse

Instance Method Details

#available_users(organization_id) ⇒ Object



20
21
22
# File 'lib/closeio/resources/user.rb', line 20

def available_users(organization_id)
  get("user/availability/?organization_id=#{organization_id}")
end

#fetch_api_keyObject



16
17
18
# File 'lib/closeio/resources/user.rb', line 16

def fetch_api_key
  get("api_key/#{@api_key}/")
end

#find_user(id) ⇒ Object



8
9
10
# File 'lib/closeio/resources/user.rb', line 8

def find_user(id)
  get("user/#{id}/")
end

#list_usersObject



4
5
6
# File 'lib/closeio/resources/user.rb', line 4

def list_users
  get('user/')
end

#meObject



12
13
14
# File 'lib/closeio/resources/user.rb', line 12

def me
  get('me/')
end