Module: Yapper::Client::Users

Included in:
Yapper::Client
Defined in:
lib/yapper/client/users.rb

Overview

Defines methods related to manipulating users

Instance Method Summary collapse

Instance Method Details

#current(options = {}) ⇒ Object



17
18
19
# File 'lib/yapper/client/users.rb', line 17

def current(options={})
  response = get("users/current", options, :json)
end

#find_by_id(id, options = {}) ⇒ Object



5
6
7
# File 'lib/yapper/client/users.rb', line 5

def find_by_id(id, options={})
  response = get("users/#{id}", options, :json)
end

#followers(name, options = {}) ⇒ Object



21
22
23
# File 'lib/yapper/client/users.rb', line 21

def followers(name, options={})
  response = get("users/following/#{name}", options, :json)
end

#following(email, options = {}) ⇒ Object



25
26
27
# File 'lib/yapper/client/users.rb', line 25

def following(email, options={})
  response = get("users/by_email?email=#{email}", options, :json)
end

#in_group(group_id, options = {}) ⇒ Object



13
14
15
# File 'lib/yapper/client/users.rb', line 13

def in_group(group_id, options={})
  response = get("users/in_group/#{group_id}", options, :json)
end

#users(options = {}) ⇒ Object



9
10
11
# File 'lib/yapper/client/users.rb', line 9

def users(options={})
  response = get("users", options, :json)
end