Sha256: 9d622ca60d3df2fd60f36d78cbdb55415a03e17d07b8983fea1dc329cd481f15

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

module APN
  module Backend
    autoload :Sidekiq,     'apn/backend/sidekiq'
    autoload :Resque,      'apn/backend/resque'

    class Simple
      def notify(token, opts)
        Thread.new do
          APN.notify_sync(token, opts)
        end
      end
    end

    class Null
      def notify(token, opts)
        APN.log("Null Backend sending message to #{token}")
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apn_sender-2.1.1 lib/apn/backend.rb
apn_sender-2.1.0 lib/apn/backend.rb
apn_sender-2.0.2 lib/apn/backend.rb