Parent

Class/Module Index [+]

Quicksearch

Mail::ReceivedField

Public Class Methods

new(*args) click to toggle source
# File lib/mail/fields/received_field.rb, line 27
def initialize(*args)
  super(CAPITALIZED_FIELD, strip_field(FIELD_NAME, args.last))
  self.parse
  self

end

Public Instance Methods

date_time() click to toggle source
# File lib/mail/fields/received_field.rb, line 44
def date_time
  ::DateTime.parse("#{element.date_time}")
end
decoded() click to toggle source
# File lib/mail/fields/received_field.rb, line 56
def decoded
  value
end
element() click to toggle source
# File lib/mail/fields/received_field.rb, line 40
def element
  @element ||= Mail::ReceivedElement.new(value)
end
encoded() click to toggle source
# File lib/mail/fields/received_field.rb, line 52
def encoded
  "#{CAPITALIZED_FIELD}: #{value}"
end
info() click to toggle source
# File lib/mail/fields/received_field.rb, line 48
def info
  element.info
end
parse(val = value) click to toggle source
# File lib/mail/fields/received_field.rb, line 34
def parse(val = value)
  unless val.blank?
    @element = Mail::ReceivedElement.new(val)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.