Sha256: decd557d1156b17cc6420d876bf4c13696a15cc10aaeb42c0c6c68916c8d225e

Contents?: true

Size: 778 Bytes

Versions: 12

Compression:

Stored size: 778 Bytes

Contents

module Rpush
  module Daemon
    module Store
      class Interface
        PUBLIC_METHODS = [:deliverable_notifications, :mark_retryable,
                          :mark_batch_retryable, :mark_delivered, :mark_batch_delivered,
                          :mark_failed, :mark_batch_failed, :create_apns_feedback,
                          :create_gcm_notification, :create_adm_notification, :update_app,
                          :update_notification, :release_connection,
                          :all_apps, :app, :mark_ids_failed, :mark_ids_retryable]

        def self.check(klass)
          missing = PUBLIC_METHODS - klass.instance_methods.map(&:to_sym)
          fail "#{klass} must implement #{missing.join(', ')}." if missing.any?
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rpush-2.2.0-java lib/rpush/daemon/store/interface.rb
rpush-2.2.0 lib/rpush/daemon/store/interface.rb
rpush-2.1.0-java lib/rpush/daemon/store/interface.rb
rpush-2.1.0 lib/rpush/daemon/store/interface.rb
rpush-2.0.1-java lib/rpush/daemon/store/interface.rb
rpush-2.0.1 lib/rpush/daemon/store/interface.rb
rpush-2.0.0-java lib/rpush/daemon/store/interface.rb
rpush-2.0.0 lib/rpush/daemon/store/interface.rb
rpush-2.0.0.rc1-java lib/rpush/daemon/store/interface.rb
rpush-2.0.0.rc1 lib/rpush/daemon/store/interface.rb
rpush-2.0.0.beta2 lib/rpush/daemon/store/interface.rb
rpush-2.0.0.beta1 lib/rpush/daemon/store/interface.rb