Sha256: 7f08fbab67d1a27b7d73eb9744ce1515e29abbd47c2f6a3b3338f77a14002fa4
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
# encoding: utf-8 require 'telegramsender' module Mutx module Workers class Notificator include Sidekiq::Worker def perform(type, destination, args= {}) simbolized = args.map { |k, v| [k.to_sym, v] }.to_h self.send(type.to_sym, destination, **simbolized) end def telegram(group_id, message: '') TelegramSender.send_message(group_id, message) end def email(mail_to, subject: '', body: '', attachment: nil) # TODO end end end end
Version data entries
4 entries across 4 versions & 1 rubygems