Class: FMail
Constant Summary collapse
- @@log =
init_logger(STDOUT)
Instance Attribute Summary collapse
-
#received ⇒ Object
readonly
Returns the value of attribute received.
Instance Method Summary collapse
-
#initialize(mail_text) ⇒ FMail
constructor
A new instance of FMail.
Methods included from Logging
init_logger, log_level=, log_target=
Constructor Details
#initialize(mail_text) ⇒ FMail
Returns a new instance of FMail.
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/email.rb', line 31 def initialize(mail_text) @log = @@log if !mail_text || mail_text.empty? @log.error('No mail-text provided. Aborting!') exit false end @mail_text = mail_text # @log.debug('mail text is ' << @mail_text) extr_received end |
Instance Attribute Details
#received ⇒ Object (readonly)
Returns the value of attribute received.
42 43 44 |
# File 'lib/email.rb', line 42 def received @received end |