lib/snp_vk_parser/group.rb
def posts_user_like_count
      count = 0
      posts.map do |p|
        vk_client.likes.get_list(owner_id: id, type: 'post', item_id: p.id).users.each do |u|
          count += 1 if u == user_id
        end
      end
      count
    end
# Count user likes in posts.
# @return [Integer] Ammount of likes.
Count user likes in posts.
Count user likes in posts .
def posts_user_like_count
      count = 0
      posts.map do |p|
        vk_client.likes.get_list(owner_id: id, type: 'post', item_id: p.id).users.each do |u|
          count += 1 if u == user_id
        end
      end
      count
    end
def posts_user_like_count count = 0 posts . map do | p | vk_client . likes . get_list ( owner_id : id , type : 'post' , item_id : p . id ) . users . each do | u | count += 1 if u == user_id end end count end
Count user likes in posts.
Count user likes in posts .
Ammount of likes.
Ammount of likes .
Integer