Class: RecipientsRetrievers::BaseRecipientsRetriever
- Inherits:
-
Object
- Object
- RecipientsRetrievers::BaseRecipientsRetriever
- Defined in:
- app/notifications/recipients_retrievers/base_recipients_retriever.rb
Direct Known Subclasses
EmployeesWithoutTimesheetsRecipientsRetriever, InvalidEmployeeRecipientsRetriever, InvalidInvoiceRecipientsRetriever, NewLoadTenderRecipientsRetriever, PayrollPeriodWithoutTransactionRecipientsRetriever, UncompletedCompanySetupRecipientsRetriever, UnreviewedPayrollTransactionRecipientsRetriever
Instance Attribute Summary collapse
-
#event_notification_configuration ⇒ Object
readonly
Returns the value of attribute event_notification_configuration.
-
#reference_event ⇒ Object
readonly
Returns the value of attribute reference_event.
Instance Method Summary collapse
-
#initialize(event_notification_configuration:, reference_event:) ⇒ BaseRecipientsRetriever
constructor
A new instance of BaseRecipientsRetriever.
- #retrieve_recipients ⇒ Object
Constructor Details
#initialize(event_notification_configuration:, reference_event:) ⇒ BaseRecipientsRetriever
Returns a new instance of BaseRecipientsRetriever.
7 8 9 10 11 12 13 |
# File 'app/notifications/recipients_retrievers/base_recipients_retriever.rb', line 7 def initialize( event_notification_configuration:, reference_event: ) @event_notification_configuration = event_notification_configuration @reference_event = reference_event end |
Instance Attribute Details
#event_notification_configuration ⇒ Object (readonly)
Returns the value of attribute event_notification_configuration.
5 6 7 |
# File 'app/notifications/recipients_retrievers/base_recipients_retriever.rb', line 5 def event_notification_configuration @event_notification_configuration end |
#reference_event ⇒ Object (readonly)
Returns the value of attribute reference_event.
5 6 7 |
# File 'app/notifications/recipients_retrievers/base_recipients_retriever.rb', line 5 def reference_event @reference_event end |
Instance Method Details
#retrieve_recipients ⇒ Object
15 16 17 |
# File 'app/notifications/recipients_retrievers/base_recipients_retriever.rb', line 15 def retrieve_recipients raise NotImplementedError end |