Module: OneSignal::AutoMap
- Included in:
- Notification::Contents, Notification::Headings
- Defined in:
- lib/onesignal/auto_map.rb
Instance Method Summary collapse
Instance Method Details
#create_readers(**attributes) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/onesignal/auto_map.rb', line 5 def create_readers **attributes attributes.keys.each do |k| self.class.define_method k do attributes[k] end end end |