Module: Vk::DSL::Groups
- Included in:
- Vk::DSL
- Defined in:
- lib/vk/dsl/groups.rb
Instance Method Summary collapse
- #get_group_by_id(group_id, options = {}) ⇒ Object (also: #get_group)
-
#get_groups(user_id, options = {}) ⇒ Array
Identifiers of groups in which user participates.
- #get_groups_by_id(group_ids, options = {}) ⇒ Object
Instance Method Details
#get_group_by_id(group_id, options = {}) ⇒ Object Also known as: get_group
34 35 36 |
# File 'lib/vk/dsl/groups.rb', line 34 def get_group_by_id(group_id, = {}) get_groups_by_id(group_id, ).first end |
#get_groups(user_id, options = {}) ⇒ Array
Identifiers of groups in which user participates
15 16 17 18 19 20 21 |
# File 'lib/vk/dsl/groups.rb', line 15 def get_groups(user_id, = {}) [:user_id] = user_id [:extended] = !![:extended] ? 1 : 0 if [:extended] [:filter] = [:filter].map(&:to_s).join(',') if [:filter] [:fields] = [:fields].map(&:to_s).join(',') if [:fields] Vk::Result.new('groups.get', Vk::Group, ) end |