class ActsAsNotifiableRedmine::Notifications

Public Class Methods

channels() click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 19
def channels
  @@channels
end
courier() click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 24
def courier
  @@courier
end
find_by_id(id) click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 29
def find_by_id(id)
  @@channels[id.to_sym]
end
register_channel(id, &block) click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 14
def register_channel(id, &block)
  @@channels[id] = Channel.new(id, &block)
end
register_courier(type, &block) click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 9
def register_courier(type, &block)
  @@courier = Couriers.factory(type, &block)
end
send_notification(channels, event, options) click to toggle source
# File lib/acts_as_notifiable_redmine/notifications.rb, line 34
def send_notification(channels, event, options)
  @@courier.send_notification(channels, event, options)
end