Class: HeyYouFcmPush::MessageObject::FcmOptions
- Inherits:
-
Object
- Object
- HeyYouFcmPush::MessageObject::FcmOptions
- Defined in:
- lib/hey_you_fcm_push/message_object/fcm_options.rb
Instance Attribute Summary collapse
-
#to_h ⇒ Object
readonly
Returns the value of attribute to_h.
Instance Method Summary collapse
-
#initialize(analytics_label:, link: nil, image: nil) ⇒ FcmOptions
constructor
A new instance of FcmOptions.
Constructor Details
#initialize(analytics_label:, link: nil, image: nil) ⇒ FcmOptions
Returns a new instance of FcmOptions.
6 7 8 9 10 11 12 |
# File 'lib/hey_you_fcm_push/message_object/fcm_options.rb', line 6 def initialize(analytics_label:, link: nil, image: nil) @to_h = { analytics_label: analytics_label, link: link, image: image }.compact end |
Instance Attribute Details
#to_h ⇒ Object (readonly)
Returns the value of attribute to_h.
4 5 6 |
# File 'lib/hey_you_fcm_push/message_object/fcm_options.rb', line 4 def to_h @to_h end |