Module: Rpush::Client::ActiveModel::Wpns::Notification::InstanceMethods

Defined in:
lib/rpush/client/active_model/wpns/notification.rb

Instance Method Summary collapse

Instance Method Details

#alert=(value) ⇒ Object



7
8
9
10
11
12
# File 'lib/rpush/client/active_model/wpns/notification.rb', line 7

def alert=(value)
  return unless value
  data = self.data || {}
  data['title'] = value
  self.data = data
end