class UserProfilePhotos

Monday, August 24 2020

This object represent a user's profile pictures.

Public Instance Methods

photos() click to toggle source

Requested profile pictures (in up to 4 sizes each). Returns array of array of PhotoSize.

# File lib/objects/user_profile_photos.rb, line 23
def photos
  data = @photo.photos
  photo_size = []
  data.each do |e|
    ary = []
    e.each do |e_d|
      ary << PhotoSize.new(e_d)
    end
    photo_size << ary
  end
  photo_size
end
total_count() click to toggle source

Total number of profile pictures the target user has.

# File lib/objects/user_profile_photos.rb, line 16
def total_count
  @photo.total_count
end