lib/weeter/plugins/notification_plugin.rb in weeter-0.11.0 vs lib/weeter/plugins/notification_plugin.rb in weeter-0.13.0

- old
+ new

@@ -5,22 +5,25 @@ require 'active_support/core_ext/module/delegation' module Weeter module Plugins class NotificationPlugin - delegate :publish_tweet, :to => :configured_plugin - delegate :delete_tweet, :to => :configured_plugin - + delegate :publish_tweet, + :delete_tweet, + :notify_rate_limiting_initiated, + :notify_missed_tweets, + :to => :configured_plugin + def initialize(client_app_config) @config = client_app_config end - + protected def configured_plugin @configured_plugin ||= begin Weeter.logger.info("Using #{@config.notification_plugin} notification plugin") Notification.const_get(@config.notification_plugin.to_s.camelize).new(@config) end end end end -end \ No newline at end of file +end