Class: Net::IMAP::ESearchResult::PartialResult
- Inherits:
-
Object
- Object
- Net::IMAP::ESearchResult::PartialResult
- Defined in:
- lib/net/imap/esearch_result.rb
Overview
Instance Method Summary collapse
-
#initialize(range:, results:) ⇒ PartialResult
constructor
A new instance of PartialResult.
-
#to_a ⇒ Object
Converts #results to an array of integers.
Constructor Details
#initialize(range:, results:) ⇒ PartialResult
Returns a new instance of PartialResult.
189 190 191 192 193 |
# File 'lib/net/imap/esearch_result.rb', line 189 def initialize(range:, results:) range => Range results = SequenceSet[results] unless results.nil? super end |
Instance Method Details
#to_a ⇒ Object
Converts #results to an array of integers.
See also: ESearchResult#to_a.
206 |
# File 'lib/net/imap/esearch_result.rb', line 206 def to_a; results&.numbers || [] end |