Class: OneSignal::Notification::Headings

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
AutoMap
Defined in:
lib/onesignal/notification/headings.rb

Instance Method Summary collapse

Methods included from AutoMap

#create_readers

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