Class: Noticed::Ephemeral::Notification

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
app/models/noticed/ephemeral.rb

Class Method Summary collapse

Class Method Details

.new_with_params(recipient, params) ⇒ Object



19
20
21
22
23
# File 'app/models/noticed/ephemeral.rb', line 19

def self.new_with_params(recipient, params)
  instance = new(recipient: recipient)
  instance.event = module_parent.new(params: params)
  instance
end