Class: StripeModelCallbacks::Plan::SyncAll
- Inherits:
-
BaseService
- Object
- BaseService
- StripeModelCallbacks::Plan::SyncAll
- Defined in:
- app/services/stripe_model_callbacks/plan/sync_all.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
2 3 4 5 6 7 8 |
# File 'app/services/stripe_model_callbacks/plan/sync_all.rb', line 2 def perform Stripe::Plan.list.each do |plan| StripeModelCallbacks::SyncFromStripe.execute!(stripe_object: plan) end succeed! end |