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