Class: NotificationMessage

Inherits:
Volt::Model
  • Object
show all
Defined in:
app/notification/models/notification_message.rb

Class Method Summary collapse

Class Method Details

.say(title, body) ⇒ Object



9
10
11
12
13
14
# File 'app/notification/models/notification_message.rb', line 9

def self.say(title, body)
  msg = NotificationMessage.new
  msg.title = title
  msg.body = body
  msg
end