Class: CommandTower::Messaging::Execution::Adapters::Email::Configuration
- Inherits:
-
Object
- Object
- CommandTower::Messaging::Execution::Adapters::Email::Configuration
- Defined in:
- app/services/command_tower/messaging/execution/adapters/email/configuration.rb
Constant Summary collapse
- SUPPORTED_DELIVERY_METHODS =
%i[test smtp].freeze
- SMTP_STRING_KEYS =
%i[address user_name password authentication].freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.email_configured? ⇒ Boolean
12 13 14 |
# File 'app/services/command_tower/messaging/execution/adapters/email/configuration.rb', line 12 def self.email_configured? new.email_configured? end |
Instance Method Details
#email_configured? ⇒ Boolean
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/services/command_tower/messaging/execution/adapters/email/configuration.rb', line 16 def email_configured? method = CommandTower.config.email.delivery_method method = method.to_sym if method.respond_to?(:to_sym) case method when :test true when :smtp smtp_contract_complete? else false end end |