Module: Croudia::Rest::Friends
- Included in:
- Client
- Defined in:
- lib/croudia/rest/friends.rb
Instance Method Summary collapse
-
#friend_ids(params = {}) ⇒ Croudia::Object::IDs
Returns a collection of user ids that the authenticating user’s friends.
-
#friends(params = {}) ⇒ Croudia::Object::List
Returns a collection of user objects the authenticating user’s friends.
Instance Method Details
#friend_ids(params = {}) ⇒ Croudia::Object::IDs
Returns a collection of user ids that the authenticating user’s friends.
16 17 18 19 |
# File 'lib/croudia/rest/friends.rb', line 16 def friend_ids(params = {}) response = get('friends/ids.json', params) Croudia::Object::IDs.new(response) end |
#friends(params = {}) ⇒ Croudia::Object::List
Returns a collection of user objects the authenticating user’s friends.
30 31 32 33 |
# File 'lib/croudia/rest/friends.rb', line 30 def friends(params = {}) response = get('friends/list.json', params) Croudia::Object::List.new(response) end |