Class: Aws::Paging::Provider Private
- Inherits:
-
Object
- Object
- Aws::Paging::Provider
- 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
-
#initialize(rules) ⇒ Provider
constructor
private
A new instance of Provider.
- #pager(operation_name) ⇒ Pager private
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.
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.
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 |