Class: UserProfilePhotos
- Inherits:
-
Object
- Object
- UserProfilePhotos
- Defined in:
- lib/telegramObjects.rb
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.
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
#photos ⇒ Object
Returns the value of attribute photos.
160 161 162 |
# File 'lib/telegramObjects.rb', line 160 def photos @photos end |
#total_count ⇒ Object
Returns the value of attribute total_count.
160 161 162 |
# File 'lib/telegramObjects.rb', line 160 def total_count @total_count end |