Sha256: dcd4bda78fafc0a37d33f2e2de5650849919f3677398463429b6b0660f03332a
Contents?: true
Size: 630 Bytes
Versions: 21
Compression:
Stored size: 630 Bytes
Contents
class Agilibox::FCM::Notifier < Agilibox::Service attr_reader :to, :title, :body, :badge, :sound, :data # rubocop:disable Metrics/ParameterLists def initialize(to:, title: nil, body:, badge: 0, sound: "default", data: {}) super() @to = to @title = title @body = body @badge = badge @sound = sound @data = data end # rubocop:enable Metrics/ParameterLists def call Agilibox::FCM::Request.call( :to => to, :notification => { :title => title, :body => body, :badge => badge, :sound => sound, }, :data => data, ) end end
Version data entries
21 entries across 21 versions & 1 rubygems