Class: TelegramMeetupBot::Botan
- Inherits:
-
Object
- Object
- TelegramMeetupBot::Botan
- Defined in:
- lib/telegram_meetup_bot/botan.rb
Instance Attribute Summary collapse
-
#author_id ⇒ Object
readonly
Returns the value of attribute author_id.
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
Instance Method Summary collapse
-
#initialize(args) ⇒ Botan
constructor
A new instance of Botan.
- #track(command) ⇒ Object
Constructor Details
#initialize(args) ⇒ Botan
Returns a new instance of Botan.
5 6 7 8 |
# File 'lib/telegram_meetup_bot/botan.rb', line 5 def initialize(args) @bot = args.fetch(:bot) = args.fetch(:author_id) end |
Instance Attribute Details
#author_id ⇒ Object (readonly)
Returns the value of attribute author_id.
3 4 5 |
# File 'lib/telegram_meetup_bot/botan.rb', line 3 def end |
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
3 4 5 |
# File 'lib/telegram_meetup_bot/botan.rb', line 3 def bot @bot end |
Instance Method Details
#track(command) ⇒ Object
10 11 12 |
# File 'lib/telegram_meetup_bot/botan.rb', line 10 def track(command) bot.track(command, ) end |