Class: TelegramMeetupBot::Commands::Factory
- Inherits:
-
Object
- Object
- TelegramMeetupBot::Commands::Factory
- Defined in:
- lib/telegram_meetup_bot/commands/factory.rb
Class Method Summary collapse
Class Method Details
.build(message) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/telegram_meetup_bot/commands/factory.rb', line 5 def build() return if BLACK_LIST.include?(.command) if no_username?() TelegramMeetupBot::Commands::NilUsername.new() else klass(.command).new() end end |