Method: Cosmos::NotificationModel#initialize
- Defined in:
- lib/cosmos/models/notification_model.rb
#initialize(time:, severity:, url:, title:, body:) ⇒ NotificationModel
Returns a new instance of NotificationModel.
24 25 26 27 28 29 30 |
# File 'lib/cosmos/models/notification_model.rb', line 24 def initialize(time:, severity:, url:, title:, body:) @time = time @severity = severity @url = url @title = title @body = body end |