Created
August 21, 2018 09:10
-
-
Save IlyaDonskikh/c73e18d2c16196f1c517f1d6612fa0bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Иногда менеджерам требуется составлять шаблоны писем с динамическими данными. | |
# Поэтому требуется разработать сервис, который позволит создавать и хранить шаблоны, | |
# а также отправлять письма на их основе. | |
# Данные: | |
Account(balance:float currency:string name:string email:string) | |
Message(title:string, text:text) | |
# Пример сообщения: "Здравствуйте, {{name}}. Ваш баланс: {{balance}}{{currency}}". | |
# Пример отправки. | |
AccountMailer.notify(@message, @account).deliver_now | |
# Результат - ссылка на гитхаб репозиторий. |
iamdeuterium
commented
Aug 22, 2018
doniv...@gmail.com не валиден. Если вакансия актуальна, пришлите валидный адрес на ilnar4888@gmail.com
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment