Class: TelegramBot::MessageProxy
- Inherits:
-
Object
- Object
- TelegramBot::MessageProxy
- Extended by:
- Forwardable
- Includes:
- ShorthandMethods
- Defined in:
- lib/telegram_bot/message_proxy.rb
Instance Attribute Summary collapse
-
#bot ⇒ Object
Returns the value of attribute bot.
-
#matcher ⇒ Object
Returns the value of attribute matcher.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(bot, message, matcher) ⇒ MessageProxy
constructor
A new instance of MessageProxy.
Methods included from ShorthandMethods
#forward_message, #reply, #send_chat_action, #send_message
Constructor Details
#initialize(bot, message, matcher) ⇒ MessageProxy
Returns a new instance of MessageProxy.
10 11 12 13 14 |
# File 'lib/telegram_bot/message_proxy.rb', line 10 def initialize(bot, , matcher) @bot = bot @message = @matcher = matcher end |
Instance Attribute Details
#bot ⇒ Object
Returns the value of attribute bot.
8 9 10 |
# File 'lib/telegram_bot/message_proxy.rb', line 8 def bot @bot end |
#matcher ⇒ Object
Returns the value of attribute matcher.
8 9 10 |
# File 'lib/telegram_bot/message_proxy.rb', line 8 def matcher @matcher end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/telegram_bot/message_proxy.rb', line 8 def @message end |