Class: CommandTower::Messaging::Pushover::Adapters::DisabledAdapter
- Inherits:
-
Object
- Object
- CommandTower::Messaging::Pushover::Adapters::DisabledAdapter
- Defined in:
- app/services/command_tower/messaging/pushover/adapters/disabled_adapter.rb
Overview
Fail-closed default. Never contacts the provider.
Instance Method Summary collapse
- #send_message!(user_key:, application_token:, title:, message:) ⇒ Object
- #send_test_notification!(user_key:, application_token:, title:, message:) ⇒ Object
- #validate_user!(user_key:, application_token:) ⇒ Object
Instance Method Details
#send_message!(user_key:, application_token:, title:, message:) ⇒ Object
23 24 25 26 27 28 |
# File 'app/services/command_tower/messaging/pushover/adapters/disabled_adapter.rb', line 23 def (user_key:, application_token:, title:, message:) Result.failure( error_code: :adapter_disabled, error_message: "Pushover delivery adapter is disabled", ) end |
#send_test_notification!(user_key:, application_token:, title:, message:) ⇒ Object
16 17 18 19 20 21 |
# File 'app/services/command_tower/messaging/pushover/adapters/disabled_adapter.rb', line 16 def send_test_notification!(user_key:, application_token:, title:, message:) Result.failure( error_code: :adapter_disabled, error_message: "Pushover verification adapter is disabled", ) end |
#validate_user!(user_key:, application_token:) ⇒ Object
9 10 11 12 13 14 |
# File 'app/services/command_tower/messaging/pushover/adapters/disabled_adapter.rb', line 9 def validate_user!(user_key:, application_token:) Result.failure( error_code: :adapter_disabled, error_message: "Pushover verification adapter is disabled", ) end |