Class: Telegram::Bot::Types::UserProfilePhotos
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::UserProfilePhotos
- Defined in:
- lib/telegram/bot/types/user_profile_photos.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(attributes) ⇒ UserProfilePhotos
constructor
A new instance of UserProfilePhotos.
Constructor Details
#initialize(attributes) ⇒ UserProfilePhotos
Returns a new instance of UserProfilePhotos.
6 7 8 |
# File 'lib/telegram/bot/types/user_profile_photos.rb', line 6 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#photos ⇒ Object
Returns the value of attribute photos.
3 4 5 |
# File 'lib/telegram/bot/types/user_profile_photos.rb', line 3 def photos @photos end |
#total_count ⇒ Object
Returns the value of attribute total_count.
3 4 5 |
# File 'lib/telegram/bot/types/user_profile_photos.rb', line 3 def total_count @total_count end |