Class: Commands::OnCallLookup
- Inherits:
-
Object
- Object
- Commands::OnCallLookup
- Includes:
- Base
- Defined in:
- lib/lita/commands/on_call_lookup.rb
Instance Method Summary collapse
Methods included from Base
#current_user, #format_incident, #format_incidents, #format_note, #format_notes, included, #initialize, #pagerduty, #response, #store
Instance Method Details
permalink #call ⇒ Object
[View source]
5 6 7 8 9 10 11 12 13 |
# File 'lib/lita/commands/on_call_lookup.rb', line 5 def call response message: 'on_call_lookup.response', params: success_params rescue Exceptions::SchedulesEmptyList response message: 'on_call_lookup.no_matching_schedule', params: { schedule_name: schedule_name } rescue Exceptions::NoOncallUser response message: 'on_call_lookup.no_one_on_call', params: { schedule_name: schedule_name } end |