Class: MailFetcher::Client
- Inherits:
-
Object
- Object
- MailFetcher::Client
- Defined in:
- lib/mail_fetcher/client.rb
Class Attribute Summary collapse
-
.account ⇒ Object
Returns the value of attribute account.
-
.clean_inbox ⇒ Object
Returns the value of attribute clean_inbox.
-
.client_id ⇒ Object
Returns the value of attribute client_id.
-
.client_secret ⇒ Object
Returns the value of attribute client_secret.
-
.host ⇒ Object
Returns the value of attribute host.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.max_wait_time ⇒ Object
Returns the value of attribute max_wait_time.
-
.port ⇒ Object
Returns the value of attribute port.
-
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
.server_type ⇒ Object
Returns the value of attribute server_type.
Class Method Summary collapse
Class Attribute Details
.account ⇒ Object
Returns the value of attribute account.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def account @account end |
.clean_inbox ⇒ Object
Returns the value of attribute clean_inbox.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def clean_inbox @clean_inbox end |
.client_id ⇒ Object
Returns the value of attribute client_id.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def client_id @client_id end |
.client_secret ⇒ Object
Returns the value of attribute client_secret.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def client_secret @client_secret end |
.host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def host @host end |
.logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def logger @logger end |
.max_wait_time ⇒ Object
Returns the value of attribute max_wait_time.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def max_wait_time @max_wait_time end |
.port ⇒ Object
Returns the value of attribute port.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def port @port end |
.refresh_token ⇒ Object
Returns the value of attribute refresh_token.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def refresh_token @refresh_token end |
.server_type ⇒ Object
Returns the value of attribute server_type.
8 9 10 |
# File 'lib/mail_fetcher/client.rb', line 8 def server_type @server_type end |
Class Method Details
.configure {|_self| ... } ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/mail_fetcher/client.rb', line 10 def configure self.max_wait_time = 30 self.clean_inbox = false yield self if debug_mode && !self.logger self.logger = self.create_default_logger end end |
.find(*args) ⇒ Object
19 20 21 |
# File 'lib/mail_fetcher/client.rb', line 19 def find(*args) client.find(*args) end |