Class: Aws::Paging::Provider Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/paging/provider.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(rules) ⇒ Provider

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Provider.

Parameters:

  • rules (Hash)


6
7
8
# File 'lib/aws-sdk-core/paging/provider.rb', line 6

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

Instance Method Details

#pager(operation_name) ⇒ Pager

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • operation_name (String)

Returns:



12
13
14
15
16
17
18
# 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