Class: GmailExtractor::EmailExtractor
- Inherits:
-
Object
- Object
- GmailExtractor::EmailExtractor
- Defined in:
- lib/gmail_extractor/email_extractor.rb
Overview
Controls the extraction
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#printer ⇒ Object
Returns the value of attribute printer.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
- #extract(label, limit) ⇒ Object
-
#initialize(user, password, name, printer) ⇒ EmailExtractor
constructor
A new instance of EmailExtractor.
Constructor Details
#initialize(user, password, name, printer) ⇒ EmailExtractor
Returns a new instance of EmailExtractor.
10 11 12 13 14 15 |
# File 'lib/gmail_extractor/email_extractor.rb', line 10 def initialize(user, password, name, printer) @user = user @password = password @printer = printer @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/gmail_extractor/email_extractor.rb', line 8 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/gmail_extractor/email_extractor.rb', line 8 def password @password end |
#printer ⇒ Object
Returns the value of attribute printer.
8 9 10 |
# File 'lib/gmail_extractor/email_extractor.rb', line 8 def printer @printer end |
#user ⇒ Object
Returns the value of attribute user.
8 9 10 |
# File 'lib/gmail_extractor/email_extractor.rb', line 8 def user @user end |
Instance Method Details
#extract(label, limit) ⇒ Object
17 18 19 20 21 |
# File 'lib/gmail_extractor/email_extractor.rb', line 17 def extract(label, limit) connect extract_mails_for label, limit disconnect end |