Class: StripeModelCallbacks::TaxRate::UpdatedService
- Inherits:
-
BaseEventService
- Object
- BaseEventService
- StripeModelCallbacks::TaxRate::UpdatedService
- Defined in:
- app/services/stripe_model_callbacks/tax_rate/updated_service.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'app/services/stripe_model_callbacks/tax_rate/updated_service.rb', line 2 def perform tax_rate.assign_from_stripe(object) if tax_rate.save create_activity if event succeed! tax_rate else fail! tax_rate.errors. end end |