Class: NewPostingNotifier
- Inherits:
-
Struct
- Object
- Struct
- NewPostingNotifier
- Defined in:
- app/workers/new_posting_notifier.rb
Instance Attribute Summary (collapse)
-
- (Object) args
Returns the value of attribute args.
Instance Method Summary (collapse)
-
- (Object) perform
arg[0] = blog_id arg[1] = posting_id.
Instance Attribute Details
- (Object) args
Returns the value of attribute args
3 4 5 |
# File 'app/workers/new_posting_notifier.rb', line 3 def args @args end |
Instance Method Details
- (Object) perform
arg[0] = blog_id arg[1] = posting_id
7 8 9 |
# File 'app/workers/new_posting_notifier.rb', line 7 def perform Notifications::new_posting_created(args[0],args[1]).deliver end |