class ActiveDeliveryRpush::Driver
Public Class Methods
new(notification_klass)
click to toggle source
# File lib/active_delivery_rpush/driver.rb, line 5 def initialize(notification_klass) @notification_klass = notification_klass end
Public Instance Methods
call(params)
click to toggle source
# File lib/active_delivery_rpush/driver.rb, line 9 def call(params) raise ArgumentError, "`app` must be passed as a param" unless params.fetch(:app, nil) notification = @notification_klass.new( params ) notification.save! end