Class: AccountConfirmedNotifier

Inherits:
Struct
  • Object
show all
Defined in:
app/workers/account_confirmed_notifier.rb

Overview

DelayedJob Worker to send a message when an account was confirmed Structure:

  arg0 = invitation
  arg1 = subject

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) args

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



7
8
9
# File 'app/workers/account_confirmed_notifier.rb', line 7

def args
  @args
end

Instance Method Details

- (Object) perform

Deliver a Notificaton using module Notifications



10
11
12
13
# File 'app/workers/account_confirmed_notifier.rb', line 10

def perform
  user = User.find(args[0])
  Notifications::(user,args[1],args[2]).deliver
end