Class: AwsCftTools::AWSEnumerator
- Inherits:
-
Enumerator
- Object
- Enumerator
- AwsCftTools::AWSEnumerator
- Defined in:
- lib/aws_cft_tools/aws_enumerator.rb
Overview
Provides common “closure” of paged results for the CFT client.
Instance Method Summary collapse
-
#initialize(client, method, args = {}) {|Object| ... } ⇒ AWSEnumerator
constructor
A new instance of AWSEnumerator.
Constructor Details
#initialize(client, method, args = {}) {|Object| ... } ⇒ AWSEnumerator
Returns a new instance of AWSEnumerator.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/aws_cft_tools/aws_enumerator.rb', line 19 def initialize(client, method, args = {}, &block) @client = client @method = method @next_token = nil @args = args super() do |yielder| run_loop(yielder, &block) end end |