Class: Telegram::Bot::Types::Game
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Game
- Defined in:
- lib/telegram/bot/types/game.rb
Instance Attribute Summary collapse
-
#animation ⇒ Object
Returns the value of attribute animation.
-
#description ⇒ Object
Returns the value of attribute description.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#text ⇒ Object
Returns the value of attribute text.
-
#text_entities ⇒ Object
Returns the value of attribute text_entities.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Game
constructor
A new instance of Game.
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
#animation ⇒ Object
Returns the value of attribute animation.
3 4 5 |
# File 'lib/telegram/bot/types/game.rb', line 3 def animation @animation end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/telegram/bot/types/game.rb', line 3 def description @description end |
#photo ⇒ Object
Returns the value of attribute photo.
3 4 5 |
# File 'lib/telegram/bot/types/game.rb', line 3 def photo @photo end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/telegram/bot/types/game.rb', line 3 def text @text end |
#text_entities ⇒ Object
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 |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/telegram/bot/types/game.rb', line 3 def title @title end |