Module: CommandTower::Messaging::RecipientReadiness
- Defined in:
- app/services/command_tower/messaging/recipient_readiness.rb,
app/services/command_tower/messaging/recipient_readiness/error.rb,
app/services/command_tower/messaging/recipient_readiness/evaluate.rb,
app/services/command_tower/messaging/recipient_readiness/reason_codes.rb,
app/services/command_tower/messaging/recipient_readiness/channel_result.rb,
app/services/command_tower/messaging/recipient_readiness/identity_facts.rb,
app/services/command_tower/messaging/recipient_readiness/recipient_result.rb,
app/services/command_tower/messaging/recipient_readiness/unknown_channel_error.rb,
app/services/command_tower/messaging/recipient_readiness/recipient_not_found_error.rb
Overview
Computed-on-demand recipient channel eligibility. No persistence, caching, or background jobs.
Defined Under Namespace
Modules: ReasonCodes Classes: ChannelResult, Error, Evaluate, IdentityFacts, RecipientNotFoundError, RecipientResult, UnknownChannelError
Class Method Summary collapse
- .for_channel(recipient_id:, channel_key:, platform_enabled_channels: []) ⇒ Object
- .for_recipient(recipient_id:, platform_enabled_channels: []) ⇒ Object
Class Method Details
.for_channel(recipient_id:, channel_key:, platform_enabled_channels: []) ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/services/command_tower/messaging/recipient_readiness.rb', line 10 def for_channel(recipient_id:, channel_key:, platform_enabled_channels: []) Evaluate.for_channel( recipient_id:, channel_key:, platform_enabled_channels:, ) end |
.for_recipient(recipient_id:, platform_enabled_channels: []) ⇒ Object
18 19 20 21 22 23 |
# File 'app/services/command_tower/messaging/recipient_readiness.rb', line 18 def for_recipient(recipient_id:, platform_enabled_channels: []) Evaluate.for_recipient( recipient_id:, platform_enabled_channels:, ) end |