class Telegram::Bot::Types::UserProfilePhotos

Attributes

photos[RW]
total_count[RW]

Public Class Methods

new(attributes) click to toggle source
# 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

Public Instance Methods

photos=(attributes) click to toggle source
# File lib/telegram/bot/types/user_profile_photos.rb, line 10
def photos=(attributes)
  @photos = attributes.map {|attr| PhotoSize.new(attr) }
end