class Pushing::Platforms::FcmPayload
Attributes
payload[R]
Public Class Methods
new(payload, *)
click to toggle source
# File lib/pushing/platforms.rb, line 86 def initialize(payload, *) @payload = payload end
should_render?(options)
click to toggle source
# File lib/pushing/platforms.rb, line 82 def self.should_render?(options) options.present? end
Public Instance Methods
recipients()
click to toggle source
# File lib/pushing/platforms.rb, line 90 def recipients Array(payload[:to] || payload[:registration_ids]) end