Sha256: c1c18f051c6e8cee36b0ce3c621dc50ff777f835a7ea21539ef1f714b2b4ad4f
Contents?: true
Size: 618 Bytes
Versions: 41
Compression:
Stored size: 618 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: {}) @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
41 entries across 41 versions & 1 rubygems
Version | Path |
---|---|
agilibox-1.2.3 | app/libs/agilibox/fcm/notifier.rb |