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( = nil, &block) = ? Hash[] : {} [:count] = :all find(, &block) end |