Class: VkGroupParser::UsersManager

Inherits:
Object
  • Object
show all
Defined in:
lib/vk_group_parser/users_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(vk_client, fields) ⇒ UsersManager

Returns a new instance of UsersManager.



3
4
5
# File 'lib/vk_group_parser/users_manager.rb', line 3

def initialize(vk_client, fields)
  @fields, @vk_client = fields, vk_client
end

Instance Method Details

#get_info(ids) ⇒ Object



7
8
9
10
11
12
# File 'lib/vk_group_parser/users_manager.rb', line 7

def get_info(ids)
  @vk_client.users.get(
      user_ids: ids,
      fields: @fields
  )
end