OfficeMomsandDads/scheduler

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

Summary

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

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

          delegate :users_to_notify,
                   to: :shift

          alias recipients users_to_notify

        end
      end
    end
  end
end