class Kiba::Uncommon::Destinations::Slack
Very basic Slack
destination
Attributes
notifier[R]
Public Class Methods
new(slack_notifier)
click to toggle source
# File lib/kiba/uncommon/destinations/slack.rb, line 14 def initialize(slack_notifier) @notifier = slack_notifier end
Public Instance Methods
close()
click to toggle source
# File lib/kiba/uncommon/destinations/slack.rb, line 29 def close # Nothing to do end
write(row)
click to toggle source
# File lib/kiba/uncommon/destinations/slack.rb, line 19 def write(row) unless @headers_written @headers_written = true notifier.ping "`#{row.keys.join(',')}`" end notifier.ping row.values.join(',') end