class Noticed::DeliveryMethods::MicrosoftTeams
Public Instance Methods
deliver()
click to toggle source
# File lib/noticed/delivery_methods/microsoft_teams.rb, line 4 def deliver post(url, json: format) end
Private Instance Methods
format()
click to toggle source
# File lib/noticed/delivery_methods/microsoft_teams.rb, line 10 def format if (method = options[:format]) notification.send(method) else { title: notification.params[:title], text: notification.params[:text], sections: notification.params[:sections], potentialAction: notification.params[:notification_action] } end end
url()
click to toggle source
# File lib/noticed/delivery_methods/microsoft_teams.rb, line 23 def url if (method = options[:url]) notification.send(method) else Rails.application.credentials.microsoft_teams[:notification_url] end end