Class: Telegram::Bot::Types::Game

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/game.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Game

Returns a new instance of Game.



10
11
12
# 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

Instance Attribute Details

#animationObject

Returns the value of attribute animation.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def animation
  @animation
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def description
  @description
end

#photoObject

Returns the value of attribute photo.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def photo
  @photo
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def text
  @text
end

#text_entitiesObject

Returns the value of attribute text_entities.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def text_entities
  @text_entities
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/telegram/bot/types/game.rb', line 3

def title
  @title
end