Module: Pushkin

Defined in:
app/models/pushkin/token.rb,
lib/pushkin.rb,
lib/pushkin/engine.rb,
lib/pushkin/version.rb,
app/jobs/pushkin/send_job.rb,
lib/pushkin/configuration.rb,
app/models/pushkin/payload.rb,
app/models/pushkin/notification.rb,
app/models/pushkin/token_result.rb,
app/jobs/pushkin/application_job.rb,
app/models/pushkin/tokens_provider.rb,
app/models/pushkin/application_record.rb,
app/helpers/pushkin/application_helper.rb,
app/mailers/pushkin/application_mailer.rb,
app/models/pushkin/push_sending_result.rb,
app/services/pushkin/send_push_service.rb,
lib/generators/pushkin/setup_generator.rb,
app/fabrics/pushkin/notification_fabric.rb,
app/models/pushkin/tokens_provider_user.rb,
app/controllers/pushkin/application_controller.rb,
app/services/pushkin/fcm/send_fcm_push_service.rb,
app/services/pushkin/fcm/send_ios_push_service.rb,
app/services/pushkin/fcm/send_web_push_service.rb,
app/services/pushkin/token_filters/token_filter.rb,
app/services/pushkin/fcm/send_android_push_service.rb,
app/services/pushkin/token_filters/ios_token_filter.rb,
app/services/pushkin/token_filters/web_token_filter.rb,
app/services/pushkin/token_filters/android_token_filter.rb

Overview

Фильтрует токены по принадлежности к платформе и предоставляет сервис по отправке уведомлений на эту конкретную платформу

Defined Under Namespace

Modules: ApplicationHelper, Fcm, TokenFilters Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, Engine, Notification, NotificationFabric, Payload, PushSendingResult, SendJob, SendPushService, SetupGenerator, Token, TokenResult, TokensProvider, TokensProviderUser

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.configObject



6
7
8
# File 'lib/pushkin.rb', line 6

def self.config
  Pushkin::Configuration.instance
end

.configure(&block) ⇒ Object



10
11
12
# File 'lib/pushkin.rb', line 10

def self.configure(&block)
  block.call(Pushkin.config)
end

.simple_notification_to_users(*args) ⇒ Object



14
15
16
# File 'lib/pushkin.rb', line 14

def self.simple_notification_to_users(*args)
  Pushkin::NotificationFabric.new.simple_notification_to_users(*args)
end