Sha256: 6bbc5bd76d7657bfc0cb5742a6021cb2f21a6d22179e7a6f32a2886b41cfa695

Contents?: true

Size: 442 Bytes

Versions: 55

Compression:

Stored size: 442 Bytes

Contents

module Aws
  module Paging
    class Provider

      # @param [Hash] rules
      def initialize(rules)
        @operations = rules['pagination'].select { |k,v| v.key?('input_token') }
      end

      # @param [String] operation_name
      # @return [Pager]
      def pager(operation_name)
        if rules = @operations[operation_name]
          Pager.new(rules)
        else
          NullPager.new
        end
      end

    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
aws-sdk-core-2.0.48 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.47 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.46 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.45 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.44 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.43 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.42 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.41 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.40 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.39 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.38 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.37 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.36 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.35 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.34 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.33 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.32 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.31 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.30 lib/aws-sdk-core/paging/provider.rb
aws-sdk-core-2.0.29 lib/aws-sdk-core/paging/provider.rb