module WorkSnaps::API::Users
Public Instance Methods
create_user(user_info)
click to toggle source
# File lib/worksnaps/api/users.rb, line 9 def create_user(user_info) object_from_response(WorkSnaps::User, :post, '/api/users.xml', {:user => user_info}) end
current_user()
click to toggle source
# File lib/worksnaps/api/users.rb, line 21 def current_user object_from_response(WorkSnaps::User, :get, '/api/me.xml') end
update_user(user_id, user_info)
click to toggle source
# File lib/worksnaps/api/users.rb, line 13 def update_user(user_id, user_info) object_from_response(WorkSnaps::User, :put, "/api/users/#{user_id}.xml", {:user => user_info}) end
user(user_id)
click to toggle source
# File lib/worksnaps/api/users.rb, line 17 def user(user_id) object_from_response(WorkSnaps::User, :get, "/api/users/#{user_id}.xml") end