class AzureBlob::BlobList

Enumerator class to lazily iterate over a list of Blob keys.

def current_page

def current_page
  document
    .get_elements("//EnumerationResults/Blobs/Blob/Name")
    .map { |element| element.get_text.to_s }
end

def each

def each
  loop do
    fetch
    current_page.each do |key|
      yield key
    end
    break unless marker
  end
end

def fetch

def fetch
  @document = Document.new(fetcher.call(marker))
end

def initialize(fetcher)


AzureBlob::BlobList.new(fetcher)
end
response = Http.new(uri, signer:).get
)
...
marker: marker,
uri.query = URI.encode_www_form(
fetcher = ->(marker) do

Example:

argument and returns the raw body response of a call to the list blob endpoint.
Expects a callable object that takes an Azure API page marker as an

but obtain one when calling relevant methods of AzureBlob::Client.
You should not instanciate this object directly,
def initialize(fetcher)
  @fetcher = fetcher
end

def inspect

def inspect
  to_a.inspect
end

def marker

def marker
  document && document.get_elements("//EnumerationResults/NextMarker").first.get_text()&.to_s
end

def size

def size
  to_a.size
end

def to_s

def to_s
  to_a.to_s
end