Class: ServiceDesk::CustomEmailCredential
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ServiceDesk::CustomEmailCredential
- Defined in:
- app/models/service_desk/custom_email_credential.rb
Constant Summary
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Instance Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Instance Method Details
#delivery_options ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'app/models/service_desk/custom_email_credential.rb', line 41 def { user_name: smtp_username, password: smtp_password, address: smtp_address, domain: Mail::Address.new(service_desk_setting.custom_email).domain, port: smtp_port || 587 } end |