lib/snp_vk_parser/group.rb
def albums_user_photo_count
      count = 0
      albums.each do |a|
        vk_client.photos.get(owner_id: a.owner_id, album_id: a.aid).each do |p|
          count += 1 if p.user_id == user_id
        end
      end
      count
    end
# Count user photos in albums.
# @return [Integer] Ammount of photos.
Count user photos in albums.
Count user photos in albums .
def albums_user_photo_count
      count = 0
      albums.each do |a|
        vk_client.photos.get(owner_id: a.owner_id, album_id: a.aid).each do |p|
          count += 1 if p.user_id == user_id
        end
      end
      count
    end
def albums_user_photo_count count = 0 albums . each do | a | vk_client . photos . get ( owner_id : a . owner_id , album_id : a . aid ) . each do | p | count += 1 if p . user_id == user_id end end count end
Count user photos in albums.
Count user photos in albums .
Ammount of photos.
Ammount of photos .
Integer