class Gapic::PagedEnumerable::Page
def each
- Yield: - Gives the resource objects in the page.
def each return enum_for :each unless block_given? return if @response.nil? # We trust that the field exists and is an Enumerable @response[@resource_field].each do |resource| resource = @format_resource.call resource if @format_resource yield resource end end