Sha256: 874e156a3e537280930bcc99f688e939c33fc09fb3fdfb0bae7057f534513b15
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
module Quandl module Slack extend Quandl::Configurable class Base attr_reader :client def self.client @client = ::Slack::Notifier.new Quandl::Slack.configuration.webhook_url, customizations end def self.customizations; end def self.ping(*args) client.ping(*args) end end def self.generate_notifiers configuration.notifiers.each do |subclass_name, subclass_customizations| name = subclass_name.camelize klass = Class.new(Quandl::Slack::Base) do define_singleton_method :customizations do subclass_customizations end end const_set name, klass end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quandl-slack-0.0.1 | lib/quandl/slack/base.rb |