Sha256: 56b1b4d3c643f3fdd4a816edc7f3991d50ba0eb17798573e26a90e2c0a588514
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
module Quandl module Slack def self.autogenerate_notifiers self.extend(Quandl::Configurable) configuration.notifiers.each do |subclass_name, subclass_customizations| generate_notifier(subclass_name, subclass_customizations) end end def self.generate_notifier(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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quandl-slack-0.0.2 | lib/quandl/slack/generate.rb |