- }
why not build them as attr? class Myinfo @lab @email @name @token end
I need to store the my_info(hash) to es
class Myinfo @lab @email @name @token
def to_hash return my_info = { xxx } end end
if use class to save message, it easy for use erb to transform template,
compass-ci/container/mail-robot/lib/assign-account-email.rb
To: <%= @my_email %> Subject: [compass-ci] Account Ready Dear <%= @my_name %>,
Thank you for joining us. ......
Thanks, Shenwei
Thanks, Luan Shengde
Thanks, Shenwei