Class: Telegram::Bot::Types::InlineKeyboardButton

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dataObject

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_gameObject

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

#payObject

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_queryObject

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_chatObject

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

#textObject

Returns the value of attribute text.



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

def text
  @text
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end