class Aws::Paging::Provider
Public Class Methods
new(rules)
click to toggle source
@param [Hash] rules
# File lib/aws-sdk-core/paging/provider.rb, line 6 def initialize(rules) @operations = rules['pagination'].select { |k,v| v.key?('input_token') } end
Public Instance Methods
pager(operation_name)
click to toggle source
@param [String] operation_name @return [Pager]
# File lib/aws-sdk-core/paging/provider.rb, line 12 def pager(operation_name) if rules = @operations[operation_name] Pager.new(rules) else NullPager.new end end