Class: Commands::PagerMe
- Inherits:
-
Object
- Object
- Commands::PagerMe
- Includes:
- Base
- Defined in:
- lib/lita/commands/pager_me.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
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/lita/commands/pager_me.rb', line 5 def call response message: 'pager_me.success', params: success_response_params rescue Exceptions::SchedulesEmptyList response schedules_empty_list rescue Exceptions::UserNotIdentified response message: 'identify.missing' rescue Exceptions::UsersEmptyList response message: 'identify.unrecognised' rescue Exceptions::OverrideUnsuccess response message: 'pager_me.failure' end |