Module: Vk::DSL::Friends
- Included in:
- Vk::DSL
- Defined in:
- lib/vk/dsl/friends.rb
Instance Method Summary collapse
-
#get_friends(user_id, options = {}) ⇒ <Fixnum>, <Vk::User>
Friends information.
Instance Method Details
#get_friends(user_id, options = {}) ⇒ <Fixnum>, <Vk::User>
Friends information
13 14 15 16 17 18 19 20 21 |
# File 'lib/vk/dsl/friends.rb', line 13 def get_friends(user_id, = {}) [:user_id] = user_id if [:fields] Vk::Result.new('friends.get', Vk::User, ).all else request('friends.get', )['items'] end end |