Class: NewSignUpNotifier

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

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



3
4
5
# File 'app/workers/new_sign_up_notifier.rb', line 3

def args
  @args
end

Instance Method Details

- (Object) perform



5
6
7
8
# File 'app/workers/new_sign_up_notifier.rb', line 5

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