Module: ActionSlack
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/action_slack.rb,
lib/action_slack/base.rb,
lib/action_slack/logger.rb,
lib/action_slack/version.rb,
lib/action_slack/webhook.rb,
lib/action_slack/notifier.rb,
lib/action_slack/send_job.rb,
lib/action_slack/configuration.rb
Defined Under Namespace
Modules: Notifier
Classes: Base, Configuration, Logger, SendJob, Webhook
Constant Summary
collapse
- VERSION =
'0.1.2'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
26
27
28
|
# File 'lib/action_slack.rb', line 26
def configuration
@configuration ||= Configuration.new
end
|
22
23
24
|
# File 'lib/action_slack.rb', line 22
def configure
yield configuration
end
|
.logger ⇒ Object
30
31
32
|
# File 'lib/action_slack.rb', line 30
def logger
@logger ||= ActionSlack::Logger.new($stdout, level: :info)
end
|
.logger=(logger) ⇒ Object
34
35
36
37
38
39
40
41
|
# File 'lib/action_slack.rb', line 34
def logger=(logger)
if logger.nil?
self.logger.level = Logger::FATAL
return
end
@logger = logger
end
|