OfficeMomsandDads/scheduler

View on GitHub
app/lib/services/notifications/shifts/recipients/destroy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Services
  module Notifications
    class Shifts
      class Recipients
        class Destroy
          include Adamantium::Flat
          include Concord.new(:shift, :_event_data)

          delegate :user,
                   to: :shift

          def recipients
            [user].compact
          end
        end
      end
    end
  end
end