Class: Net::IMAP::ESearchResult::PartialResult
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/net/imap/esearch_result.rb |
Overview
Class Method Summary
- .new(range:, results:) ⇒ PartialResult constructor
Instance Method Summary
-
#to_a
Converts
#results
to an array of integers.
Constructor Details
.new(range:, results:) ⇒ PartialResult
# File 'lib/net/imap/esearch_result.rb', line 146
def initialize(range:, results:) range => Range results = SequenceSet[results] unless results.nil? super end
Instance Method Details
#to_a
Converts #results
to an array of integers.
See also: Net::IMAP::ESearchResult#to_a.
# File 'lib/net/imap/esearch_result.rb', line 163
def to_a; results&.numbers || [] end