Class: GmailExtractor::Email
- Inherits:
-
Object
- Object
- GmailExtractor::Email
- Defined in:
- lib/gmail_extractor/email.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#date ⇒ Object
Returns the value of attribute date.
-
#from ⇒ Object
Returns the value of attribute from.
Instance Method Summary collapse
-
#initialize(from, date, content) ⇒ Email
constructor
A new instance of Email.
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
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/gmail_extractor/email.rb', line 4 def content @content end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/gmail_extractor/email.rb', line 4 def date @date end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/gmail_extractor/email.rb', line 4 def from @from end |