Module: Closeio::Client::User
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/user.rb
Instance Method Summary collapse
- #available_users(organization_id) ⇒ Object
- #fetch_api_key ⇒ Object
- #find_user(id) ⇒ Object
- #list_users ⇒ Object
- #me ⇒ Object
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_key ⇒ Object
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_users ⇒ Object
4 5 6 |
# File 'lib/closeio/resources/user.rb', line 4 def list_users get('user/') end |
#me ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/user.rb', line 12 def me get('me/') end |