Class: FMail
Constant Summary
Constants included from BasicLogging
BasicLogging::DEBUG, BasicLogging::ERROR, BasicLogging::FATAL, BasicLogging::INFO, BasicLogging::Levels, BasicLogging::UNKNOWN, BasicLogging::WARN
Instance Attribute Summary collapse
-
#received ⇒ Object
readonly
Returns the value of attribute received.
Attributes included from BasicLogging
Instance Method Summary collapse
-
#initialize(mail_text) ⇒ FMail
constructor
A new instance of FMail.
Methods included from BasicLogging
is_muted?, #log, mute, #set_level, #set_target
Constructor Details
#initialize(mail_text) ⇒ FMail
Returns a new instance of FMail.
24 25 26 27 28 29 30 31 32 |
# File 'lib/email.rb', line 24 def initialize(mail_text) if !mail_text || mail_text.empty? error('No mail-text provided. Aborting!') exit false end @mail_text = mail_text # debug('mail text is ' << @mail_text) extr_received end |
Instance Attribute Details
#received ⇒ Object (readonly)
Returns the value of attribute received.
34 35 36 |
# File 'lib/email.rb', line 34 def received @received end |