Class: MailParser::RFC2822::Received

Inherits:
Object
  • Object
show all
Defined in:
lib/mailparser/rfc2822.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name_val, date_time) ⇒ Received

Returns a new instance of Received.



147
148
149
# File 'lib/mailparser/rfc2822.rb', line 147

def initialize(name_val, date_time)
  @name_val, @date_time = name_val, date_time
end

Instance Attribute Details

#date_timeObject (readonly)

Returns the value of attribute date_time.



150
151
152
# File 'lib/mailparser/rfc2822.rb', line 150

def date_time
  @date_time
end

#name_valObject (readonly)

Returns the value of attribute name_val.



150
151
152
# File 'lib/mailparser/rfc2822.rb', line 150

def name_val
  @name_val
end