Class: UserProfilePhotos

Inherits:
Object
  • Object
show all
Defined in:
lib/telegramObjects.rb

Overview

Object describing a list of photos in up to 4 sizes each

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UserProfilePhotos

Returns a new instance of UserProfilePhotos.



166
167
168
169
170
171
172
173
# File 'lib/telegramObjects.rb', line 166

def initialize json
  return if !json
  @total_count = json["total_count"]
  @photos = []
  json["photos"].each do |p|
    @photos<<ArrayOf.new(p).to_a
  end
end

Instance Attribute Details

#photosObject

Returns the value of attribute photos.



165
166
167
# File 'lib/telegramObjects.rb', line 165

def photos
  @photos
end

#total_countObject

Returns the value of attribute total_count.



165
166
167
# File 'lib/telegramObjects.rb', line 165

def total_count
  @total_count
end