Sha256: 060339242d3cdc1094a113051ce57aaae07978e9451be8c2396780886000d9f5
Contents?: true
Size: 953 Bytes
Versions: 103
Compression:
Stored size: 953 Bytes
Contents
# encoding: utf-8 class MailBuilder def to(receivers) @to = receivers return self end def from(sender) @from = "#{sender.hxt_id}@hexacta.com" return self end def subject(a_subject) @subject = a_subject return self end def description(a_description) @description = a_description return self end def link(a_link) @link = a_link return self end def send @from ||= "apps@hexacta.com" if @link.nil? GeneralMailNoLink.new({ :to => @to, :from => @from, :subject => @subject, :description => @description }).send else GeneralMail.new({ :to => @to, :from => @from, :subject => @subject, :description => @description, :link => @link }).send end end end
Version data entries
103 entries across 103 versions & 1 rubygems