Sha256: b2ba0ac54b5ca687f177eab03affa046fc023a3d135fcb63dd0feb9a78af53ea
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
class FreezingEmail::Mail attr_reader :delivery_handler, :subject, :body, :from, :to, :generated_in def initialize(mail, params) @subject = mail.subject @body = mail.body @to = mail.to @from = mail.from @delivery_handler = mail.delivery_handler.to_s @generated_in = params[:generated_in] if params.has_key?(:generated_in) end def name @name ||= "#{@subject.parameterize.tableize}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freezing_email-0.0.2 | lib/freezing_email/mail.rb |