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
- #current(options = {}) ⇒ Object
- #find_by_id(id, options = {}) ⇒ Object
- #followers(name, options = {}) ⇒ Object
- #following(email, options = {}) ⇒ Object
- #in_group(group_id, options = {}) ⇒ Object
- #users(options = {}) ⇒ Object
Instance Method Details
#current(options = {}) ⇒ Object
17 18 19 |
# File 'lib/yapper/client/users.rb', line 17 def current(={}) response = get("users/current", , :json) end |
#find_by_id(id, options = {}) ⇒ Object
5 6 7 |
# File 'lib/yapper/client/users.rb', line 5 def find_by_id(id, ={}) response = get("users/#{id}", , :json) end |
#followers(name, options = {}) ⇒ Object
21 22 23 |
# File 'lib/yapper/client/users.rb', line 21 def followers(name, ={}) response = get("users/following/#{name}", , :json) end |
#following(email, options = {}) ⇒ Object
25 26 27 |
# File 'lib/yapper/client/users.rb', line 25 def following(email, ={}) response = get("users/by_email?email=#{email}", , :json) end |
#in_group(group_id, options = {}) ⇒ Object
13 14 15 |
# File 'lib/yapper/client/users.rb', line 13 def in_group(group_id, ={}) response = get("users/in_group/#{group_id}", , :json) end |
#users(options = {}) ⇒ Object
9 10 11 |
# File 'lib/yapper/client/users.rb', line 9 def users(={}) response = get("users", , :json) end |