Class: EffectiveMailchimpSubscribeAllUsersJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- EffectiveMailchimpSubscribeAllUsersJob
- Defined in:
- app/jobs/effective_mailchimp_subscribe_all_users_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(mailchimp_list) ⇒ Object
3 4 5 6 |
# File 'app/jobs/effective_mailchimp_subscribe_all_users_job.rb', line 3 def perform(mailchimp_list) raise('expected an Effective::MailchimpList') unless mailchimp_list.kind_of?(Effective::MailchimpList) mailchimp_list.subscribe_all_users!(now: true) end |