class RailsNotify::Notification

Public Class Methods

send(notifications) click to toggle source
# File lib/rails_notify.rb, line 6
def self.send(notifications)
    for notification in notifications
        if(notification['platform'] == 'slack')
            HTTParty.post(notification['url'], :body => notification['payload'].to_json, :headers => { 'Content-Type' => 'application/json' })
        end
    end
end