Class: Firebase::Admin::Messaging::APNSConfig
- Inherits:
-
Object
- Object
- Firebase::Admin::Messaging::APNSConfig
- Defined in:
- lib/firebase/admin/messaging/apns_config.rb
Overview
APNS-specific options that can be included in a Message.
Refer to ‘APNS Documentation` for more information.
Instance Attribute Summary collapse
-
#fcm_options ⇒ APNSFCMOptions?
Options for features provided by the FCM SDK for iOS.
-
#headers ⇒ Hash{Symbol,String => String}?
A collection of APNs headers.
-
#payload ⇒ APNSPayload?
An APNs payload to be included in the message.
Instance Method Summary collapse
-
#initialize(headers: nil, payload: nil, fcm_options: nil) ⇒ APNSConfig
constructor
Initializes an APNSConfig.
Constructor Details
#initialize(headers: nil, payload: nil, fcm_options: nil) ⇒ APNSConfig
Initializes an Firebase::Admin::Messaging::APNSConfig.
30 31 32 33 34 |
# File 'lib/firebase/admin/messaging/apns_config.rb', line 30 def initialize(headers: nil, payload: nil, fcm_options: nil) self.headers = headers self.payload = payload self. = end |
Instance Attribute Details
#fcm_options ⇒ APNSFCMOptions?
Returns Options for features provided by the FCM SDK for iOS.
19 20 21 |
# File 'lib/firebase/admin/messaging/apns_config.rb', line 19 def @fcm_options end |
#headers ⇒ Hash{Symbol,String => String}?
Returns A collection of APNs headers. Header values must be strings.
11 12 13 |
# File 'lib/firebase/admin/messaging/apns_config.rb', line 11 def headers @headers end |
#payload ⇒ APNSPayload?
Returns An APNs payload to be included in the message.
15 16 17 |
# File 'lib/firebase/admin/messaging/apns_config.rb', line 15 def payload @payload end |