Sha256: a4a2dad088671c99721aadba91ddd1ab25fc17036cc707d9df57321bdbb306d1

Contents?: true

Size: 221 Bytes

Versions: 3

Compression:

Stored size: 221 Bytes

Contents

module Susply
  class CancelSubscription
    def self.call(subscription)
      if subscription.active?
        subscription.update_attributes(deactivated_at: Time.zone.now)
      end

      subscription
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
susply-1.0.0 app/services/susply/cancel_subscription.rb
susply-0.0.2 app/services/susply/cancel_subscription.rb
susply-0.0.1 app/services/susply/cancel_subscription.rb