class Net::IMAP::ESearchResult::PartialResult

Returned by ESearchResult#partial.

Requires PARTIAL [RFC9394] or CONTEXT=SEARCH/CONTEXT=SORT [RFC5267]

See also: to_a

Public Class Methods

new(range:, results:) click to toggle source
Calls superclass method
# File net-imap-0.5.4/lib/net/imap/esearch_result.rb, line 146
def initialize(range:, results:)
  range   => Range
  results = SequenceSet[results] unless results.nil?
  super
end

Public Instance Methods

range → range click to toggle source
# File net-imap-0.5.4/lib/net/imap/esearch_result.rb, line 153
        
results → sequence set or nil click to toggle source
# File net-imap-0.5.4/lib/net/imap/esearch_result.rb, line 157
        
to_a() click to toggle source

Converts results to an array of integers.

See also: ESearchResult#to_a.

# File net-imap-0.5.4/lib/net/imap/esearch_result.rb, line 163
def to_a; results&.numbers || [] end