Class: FMail

Inherits:
Object
  • Object
show all
Extended by:
Logging
Defined in:
lib/email.rb

Constant Summary collapse

@@log =
init_logger(STDOUT)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#receivedObject (readonly)

Returns the value of attribute received.



42
43
44
# File 'lib/email.rb', line 42

def received
  @received
end