lib/snp_vk_parser/group.rb
# Count user comments in posts.
# @return [Integer] Ammount of comments.
Count user comments in posts.
Count user comments in posts .
def posts_user_comment_count
      count = 0
      posts.map do |p|
        vk_client.wall.get_comments(owner_id: id, post_id: p.id).each_with_index do |comment, index|
          next if index == 0
          count += 1 if comment.from_id == user_id
        end
      end
      count
    end
def posts_user_comment_count count = 0 posts . map do | p | vk_client . wall . get_comments ( owner_id : id , post_id : p . id ) . each_with_index do | comment , index | next if index == 0 count += 1 if comment . from_id == user_id end end count end
Count user comments in posts.
Count user comments in posts .
Ammount of comments.
Ammount of comments .
Integer