Sha256: dc0000ce7a86016966f898da3b8adbc65a16e664b059654fc5abafe2091e7cd2

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

module Massive
  module Notifiers
    class Pusher < Base
      protected

      def send_notification(message, data, &block)
        data = block.call if block_given?

        client.trigger(id, message, data)
      end

      def client
        @client ||= options[:client] || ::Pusher
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
massive-0.4.0 lib/massive/notifiers/pusher.rb
massive-0.3.0 lib/massive/notifiers/pusher.rb
massive-0.2.0 lib/massive/notifiers/pusher.rb
massive-0.1.1 lib/massive/notifiers/pusher.rb
massive-0.1.0 lib/massive/notifiers/pusher.rb