Method: Mail::Retriever#all

Defined in:
lib/mail/network/retriever_methods/base.rb

#all(options = nil, &block) ⇒ Object

Get all emails.

Possible options:

order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.


39
40
41
42
43
# File 'lib/mail/network/retriever_methods/base.rb', line 39

def all(options = nil, &block)
  options = options ? Hash[options] : {}
  options[:count] = :all
  find(options, &block)
end