Class: Susply::CancelSubscription
- Inherits:
-
Object
- Object
- Susply::CancelSubscription
- Defined in:
- app/services/susply/cancel_subscription.rb
Class Method Summary collapse
Class Method Details
.call(subscription) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/services/susply/cancel_subscription.rb', line 3 def self.call(subscription) if subscription.active? subscription.update_attributes(deactivated_at: Time.zone.now) end subscription end |