Sha256: e02e3294ffe4959dbf5593e3d33f3b68191747cec6f50a1b671b88a05ff9425d

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

module Quandl
  module Slack
    class Base
      attr_reader :client

      def self.client
        @client = ::Slack::Notifier.new webhook_url, customizations
      end

      def self.webhook_url
        ENV['SLACK_WEBHOOK'] || Quandl::Slack.configuration.webhook_url
      end

      def self.customizations; end

      def self.ping(*args)
        client.ping(*args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
quandl-slack-0.0.2 lib/quandl/slack/base.rb