lib/snp_vk_parser/group.rb
def posts_user_repost_count
      count = 0
      posts.map do |p|
        vk_client.wall.get_reposts(owner_id: id, post_id: p.id).profiles.each do |u|
          count += 1 if u.uid == user_id
        end
      end
      count
    end
# Count user reposts in posts.
# @return [Integer] Ammount of reposts.
Count user reposts in posts.
Count user reposts in posts .
def posts_user_repost_count
      count = 0
      posts.map do |p|
        vk_client.wall.get_reposts(owner_id: id, post_id: p.id).profiles.each do |u|
          count += 1 if u.uid == user_id
        end
      end
      count
    end
def posts_user_repost_count count = 0 posts . map do | p | vk_client . wall . get_reposts ( owner_id : id , post_id : p . id ) . profiles . each do | u | count += 1 if u . uid == user_id end end count end
Count user reposts in posts.
Count user reposts in posts .
Ammount of reposts.
Ammount of reposts .
Integer