Class: OneSignal::Notification::Contents
- Inherits:
-
Object
- Object
- OneSignal::Notification::Contents
- Extended by:
- Forwardable
- Includes:
- AutoMap
- Defined in:
- lib/onesignal/notification/contents.rb
Instance Method Summary collapse
-
#initialize(en:, **content) ⇒ Contents
constructor
A new instance of Contents.
Methods included from AutoMap
Constructor Details
#initialize(en:, **content) ⇒ Contents
Returns a new instance of Contents.
11 12 13 14 |
# File 'lib/onesignal/notification/contents.rb', line 11 def initialize en:, **content @content = content.merge(en: en) create_readers **@content end |