Class: Lita::Handlers::ListTeam
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::ListTeam
- Defined in:
- lib/lita/handlers/list_team.rb
Instance Method Summary collapse
Instance Method Details
#list(response) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/lita/handlers/list_team.rb', line 17 def list(response) team_name = response.match_data[1] if team = get_team(team_name) response.reply(render_template(:list_team, team: team)) else response.reply(render_template(:team_not_found, team_name: team_name)) end end |