Class: EffectiveMailchimpUpdateJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/effective_mailchimp_update_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(user) ⇒ Object



3
4
5
6
# File 'app/jobs/effective_mailchimp_update_job.rb', line 3

def perform(user)
  raise('expected an effective_mailchimp_user') unless user.class.try(:effective_mailchimp_user?)
  user.mailchimp_update!
end