Class: Rpush::Daemon::Store::Interface

Inherits:
Object
  • Object
show all
Defined in:
lib/rpush/daemon/store/interface.rb

Constant Summary collapse

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,
:reopen_log, :pending_delivery_count, :translate_integer_notification_id]

Class Method Summary collapse

Class Method Details

.check(klass) ⇒ Object



13
14
15
16
# File 'lib/rpush/daemon/store/interface.rb', line 13

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