Class: TelegramMeetupBot::Commands::ListCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/telegram_meetup_bot/commands/list_command.rb

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from Base

#command, #initialize

Constructor Details

This class inherits a constructor from TelegramMeetupBot::Commands::Base

Instance Method Details

#execObject



4
5
6
7
8
9
10
11
# File 'lib/telegram_meetup_bot/commands/list_command.rb', line 4

def exec
  response = handle_date(date) do
    users = Calendar.formated_users_for_date(date)
    list_response(list: users, date: date)
  end

  [response, build_reply_markup]
end