module Knodes::Client::Users
Public Instance Methods
user(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 4 def user(options={}) response = get("users/#{options[:user_id]}", options.merge(creds)) end
user_connect(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 8 def user_connect(options={}) response = post("users/connect", options.merge(creds)) end
user_disconnect(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 12 def user_disconnect(options={}) response = post("users/disconnect", options.merge(creds)) end
user_do_index(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 35 def user_do_index(options={}) response = post("users/#{options[:user_id]}/do_index", options.merge(creds), true) status = response.env[:status] end
user_notify_active(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 20 def user_notify_active(options={}) response = post("users/notify_active", options.merge(creds)) end
user_notify_inactive(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 24 def user_notify_inactive(options={}) #do a raw request/response (don't parse), as this method only returns an http status response = post("users/notify_inactive", options.merge(creds), true) status = response.env[:status] end
user_ready(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 30 def user_ready(options={}) response = get("users/#{options[:user_id]}/ready", options.merge(creds), true) body = response.env[:body] end
user_update(options={})
click to toggle source
# File lib/knodes/client/users.rb, line 16 def user_update(options={}) response = post("users/#{options[:user_id]}", options.merge(creds)) end