class Commands::IncidentsAll
Public Instance Methods
call()
click to toggle source
# File lib/lita/commands/incidents_all.rb, line 5 def call incidents = pagerduty.get_incidents(query_params) response format_incidents(incidents) rescue Exceptions::IncidentsEmptyList response message: 'incident.none' end
Private Instance Methods
query_params()
click to toggle source
# File lib/lita/commands/incidents_all.rb, line 14 def query_params { statuses: %w[triggered acknowledged] } end