Class: Tramway::Bots::Telegram::Custom::Scenario
- Inherits:
-
Object
- Object
- Tramway::Bots::Telegram::Custom::Scenario
- Includes:
- Info, MessagesManager
- Defined in:
- lib/tramway/bots/telegram/custom/scenario.rb
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
-
#bot_record ⇒ Object
readonly
Returns the value of attribute bot_record.
-
#chat ⇒ Object
readonly
Returns the value of attribute chat.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#message_from_telegram ⇒ Object
readonly
Returns the value of attribute message_from_telegram.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Scenario
constructor
A new instance of Scenario.
Methods included from Info
#channel_from, #chat_from, #user_from
Methods included from MessagesManager
#log_message, #message_to_chat, #message_to_user, #send_file
Constructor Details
#initialize(**options) ⇒ Scenario
Returns a new instance of Scenario.
9 10 11 12 13 14 15 16 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 9 def initialize(**) @bot = [:bot] @message_from_telegram = [:message] @bot_record = [:bot_record] @chat = [:chat] @message = [:message_object] @user = [:user] end |
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def bot @bot end |
#bot_record ⇒ Object (readonly)
Returns the value of attribute bot_record.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def bot_record @bot_record end |
#chat ⇒ Object (readonly)
Returns the value of attribute chat.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def chat @chat end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def @message end |
#message_from_telegram ⇒ Object (readonly)
Returns the value of attribute message_from_telegram.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def @message_from_telegram end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
7 8 9 |
# File 'lib/tramway/bots/telegram/custom/scenario.rb', line 7 def user @user end |