Class: NewPostingNotifier

Inherits:
Struct
  • Object
show all
Defined in:
app/workers/new_posting_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_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