Class: UserProfilePhotos

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UserProfilePhotos

Returns a new instance of UserProfilePhotos.



161
162
163
164
165
166
167
168
# File 'lib/telegramObjects.rb', line 161

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.



160
161
162
# File 'lib/telegramObjects.rb', line 160

def photos
  @photos
end

#total_countObject

Returns the value of attribute total_count.



160
161
162
# File 'lib/telegramObjects.rb', line 160

def total_count
  @total_count
end