Class: Mail::DateTimeElement

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/elements/date_time_element.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ DateTimeElement

Returns a new instance of DateTimeElement



9
10
11
12
13
# File 'lib/mail/elements/date_time_element.rb', line 9

def initialize(string)
  date_time = Mail::Parsers::DateTimeParser.parse(string)
  @date_string = date_time.date_string
  @time_string = date_time.time_string
end

Instance Attribute Details

#date_stringObject (readonly)

Returns the value of attribute date_string



7
8
9
# File 'lib/mail/elements/date_time_element.rb', line 7

def date_string
  @date_string
end

#time_stringObject (readonly)

Returns the value of attribute time_string



7
8
9
# File 'lib/mail/elements/date_time_element.rb', line 7

def time_string
  @time_string
end