Class: Miteru::Notifiers::Slack
- Defined in:
- lib/miteru/notifiers/slack.rb
Instance Method Summary collapse
-
#call(kit) ⇒ Object
Notify to Slack.
- #callable? ⇒ Boolean
Methods inherited from Base
Methods inherited from Service
Instance Method Details
#call(kit) ⇒ Object
Notify to Slack
82 83 84 85 86 87 |
# File 'lib/miteru/notifiers/slack.rb', line 82 def call(kit) return unless callable? = SlackAttachment.new(kit.url) notifier.post(text: kit.filename_with_size, attachments: .to_a) end |
#callable? ⇒ Boolean
89 90 91 |
# File 'lib/miteru/notifiers/slack.rb', line 89 def callable? !webhook_url.nil? end |