class Telegram::Bot::Types::Game

Attributes

animation[RW]
description[RW]
photo[RW]
text[RW]
text_entities[RW]
title[RW]

Public Class Methods

new(attributes) click to toggle source
# File lib/telegram/bot/types/game.rb, line 10
def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Public Instance Methods

animation=(attributes) click to toggle source
# File lib/telegram/bot/types/game.rb, line 22
def animation=(attributes)
  @animation = Animation.new(attributes)
end
photo=(attributes) click to toggle source
# File lib/telegram/bot/types/game.rb, line 14
def photo=(attributes)
  @photo = attributes.map {|attr| PhotoSize.new(attr) }
end
text_entities=(attributes) click to toggle source
# File lib/telegram/bot/types/game.rb, line 18
def text_entities=(attributes)
  @text_entities = attributes.map {|attr| MessageEntity.new(attr) }
end