Class: GmailExtractor::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/gmail_extractor/email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, date, content) ⇒ Email



6
7
8
9
10
# File 'lib/gmail_extractor/email.rb', line 6

def initialize(from, date, content)
  @from = from
  @date = date
  @content = content
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/gmail_extractor/email.rb', line 4

def content
  @content
end

#dateObject

Returns the value of attribute date.



4
5
6
# File 'lib/gmail_extractor/email.rb', line 4

def date
  @date
end

#fromObject

Returns the value of attribute from.



4
5
6
# File 'lib/gmail_extractor/email.rb', line 4

def from
  @from
end