Sha256: b54bb80283ec3ed8dabfcf1d402d1103002a1e1d5ebca9a7f836d29bd56de4f6
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
module PushToSNS class AndroidPushNotification < BasicPushNotification DEFAULT_MESSAGE = "Android Push Notification" def message { GCM: { data: default_payload.deeper_merge(payload) }.to_json } end private def default_payload { message: payload[:message] || DEFAULT_MESSAGE } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_to_sns-0.1.1 | lib/push_to_sns/android_push_notification.rb |
push_to_sns-0.1.0 | lib/push_to_sns/android_push_notification.rb |