Class: Telegram::Bot::Types::CallbackQuery
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::CallbackQuery
- Defined in:
- lib/telegram/bot/types/callback_query.rb
Instance Attribute Summary collapse
-
#chat_instance ⇒ Object
Returns the value of attribute chat_instance.
-
#data ⇒ Object
Returns the value of attribute data.
-
#from ⇒ Object
Returns the value of attribute from.
-
#game_short_name ⇒ Object
Returns the value of attribute game_short_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#inline_message_id ⇒ Object
Returns the value of attribute inline_message_id.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ CallbackQuery
constructor
A new instance of CallbackQuery.
Constructor Details
#initialize(attributes) ⇒ CallbackQuery
Returns a new instance of CallbackQuery.
11 12 13 |
# File 'lib/telegram/bot/types/callback_query.rb', line 11 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#chat_instance ⇒ Object
Returns the value of attribute chat_instance.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def chat_instance @chat_instance end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def data @data end |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def from @from end |
#game_short_name ⇒ Object
Returns the value of attribute game_short_name.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def game_short_name @game_short_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def id @id end |
#inline_message_id ⇒ Object
Returns the value of attribute inline_message_id.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def @inline_message_id end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/telegram/bot/types/callback_query.rb', line 3 def @message end |