Class: TelegramMeetupBot::Botan

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram_meetup_bot/botan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  @author_id = args.fetch(:author_id)
end

Instance Attribute Details

#author_idObject (readonly)

Returns the value of attribute author_id.



3
4
5
# File 'lib/telegram_meetup_bot/botan.rb', line 3

def author_id
  @author_id
end

#botObject (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, author_id)
end