Class: UserProfilePhotos
- Inherits:
-
Object
- Object
- UserProfilePhotos
- Defined in:
- lib/telegramObjects.rb
Overview
Object describing a list of photos in up to 4 sizes each
Instance Attribute Summary collapse
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ UserProfilePhotos
constructor
A new instance of UserProfilePhotos.
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
#photos ⇒ Object
Returns the value of attribute photos.
165 166 167 |
# File 'lib/telegramObjects.rb', line 165 def photos @photos end |
#total_count ⇒ Object
Returns the value of attribute total_count.
165 166 167 |
# File 'lib/telegramObjects.rb', line 165 def total_count @total_count end |