module Bellow

Constants

VERSION

Public Class Methods

notify(users, app_name, message) click to toggle source
# File lib/bellow.rb, line 7
def self.notify(users, app_name, message)
  users.each do |user, services|
    if key = services[:prowly]
      Prowly.notify do |n|
        n.apikey = key
        n.priority = Prowly::Notification::Priority::MODERATE
        n.application = app_name
        n.event = "Notification"
        n.description = message
      end
    end
    if key = services[:nma]
      NMA.notify do |n|
        n.apikey = key
        n.priority = NMA::Priority::MODERATE
        n.application = app_name
        n.event = "Notification"
        n.description = message
      end
    end
  end
end