class Gapic::PagedEnumerable::Page

def initialize response, resource_field, operation, format_resource: nil

Parameters:
  • format_resource (Proc) -- A Proc object to format the resource object. The Proc should accept response as an
  • operation (::GRPC::ActiveCall::Operation) -- the RPC operation for the page.
  • resource_field (String) -- The name of the field in response which holds the resources.
  • response (Object) -- The response object for the page.

Other tags:
    Private: -
def initialize response, resource_field, operation, format_resource: nil
  @response = response
  @resource_field = resource_field
  @operation = operation
  @format_resource = format_resource
end