class Aws::Plugins::ResponsePaging

Public Instance Methods

add_handlers(handlers, config) click to toggle source
# File lib/aws-sdk-core/plugins/response_paging.rb, line 5
def add_handlers(handlers, config)
  handlers.add(Handler,
    operations: pageable_operations(config),
    step: :initialize,
    priority: 90)
end

Private Instance Methods

pageable_operations(config) click to toggle source
# File lib/aws-sdk-core/plugins/response_paging.rb, line 14
def pageable_operations(config)
  config.api.operations.inject([]) do |pageable, (name, operation)|
    pageable << name if operation[:pager]
    pageable
  end
end