Class: OneSignal::Notification::Contents

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

Instance Method Summary collapse

Methods included from AutoMap

#create_readers

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