class JunkDrawer::Notifier

class to send dev notifications to different channels

Constants

STRATEGIES

Attributes

strategy[R]

Public Class Methods

strategy=(strategy) click to toggle source
# File lib/junk_drawer/notifier.rb, line 17
def strategy=(strategy)
  @strategy =
    strategy.is_a?(Symbol) ? STRATEGIES.fetch(strategy) : strategy
end

Public Instance Methods

call(*args) click to toggle source
# File lib/junk_drawer/notifier.rb, line 30
def call(*args)
  self.class.strategy.(*args)
end