Class: MailFetcher::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/mail_fetcher/client.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.accountObject

Returns the value of attribute account.



8
9
10
# File 'lib/mail_fetcher/client.rb', line 8

def 
  @account
end

.clean_inboxObject

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_idObject

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_secretObject

Returns the value of attribute client_secret.



8
9
10
# File 'lib/mail_fetcher/client.rb', line 8

def client_secret
  @client_secret
end

.hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/mail_fetcher/client.rb', line 8

def host
  @host
end

.loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/mail_fetcher/client.rb', line 8

def logger
  @logger
end

.max_wait_timeObject

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

.portObject

Returns the value of attribute port.



8
9
10
# File 'lib/mail_fetcher/client.rb', line 8

def port
  @port
end

.refresh_tokenObject

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_typeObject

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

Yields:

  • (_self)

Yield Parameters:



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