Class: Telegram::Bot::Types::InlineKeyboardButton
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::InlineKeyboardButton
- Defined in:
- lib/telegram/bot/types/inline_keyboard_button.rb
Instance Attribute Summary collapse
-
#callback_data ⇒ Object
Returns the value of attribute callback_data.
-
#callback_game ⇒ Object
Returns the value of attribute callback_game.
-
#pay ⇒ Object
Returns the value of attribute pay.
-
#switch_inline_query ⇒ Object
Returns the value of attribute switch_inline_query.
-
#switch_inline_query_current_chat ⇒ Object
Returns the value of attribute switch_inline_query_current_chat.
-
#text ⇒ Object
Returns the value of attribute text.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ InlineKeyboardButton
constructor
A new instance of InlineKeyboardButton.
Constructor Details
#initialize(attributes) ⇒ InlineKeyboardButton
Returns a new instance of InlineKeyboardButton.
11 12 13 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 11 def initialize(attributes) attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k } end |
Instance Attribute Details
#callback_data ⇒ Object
Returns the value of attribute callback_data.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def callback_data @callback_data end |
#callback_game ⇒ Object
Returns the value of attribute callback_game.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def callback_game @callback_game end |
#pay ⇒ Object
Returns the value of attribute pay.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def pay @pay end |
#switch_inline_query ⇒ Object
Returns the value of attribute switch_inline_query.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def switch_inline_query @switch_inline_query end |
#switch_inline_query_current_chat ⇒ Object
Returns the value of attribute switch_inline_query_current_chat.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def switch_inline_query_current_chat @switch_inline_query_current_chat end |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def text @text end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/telegram/bot/types/inline_keyboard_button.rb', line 3 def url @url end |