Class: Aws::Resources::Operations::HasManyOperation
- Inherits:
-
ResourceOperation
- Object
- Base
- Operation
- ResourceOperation
- Aws::Resources::Operations::HasManyOperation
- Defined in:
- lib/aws-sdk-resources/operations.rb
Instance Attribute Summary collapse
- #builder ⇒ Builder readonly
- #limit_key ⇒ Symbol? readonly
Attributes inherited from Operation
Attributes inherited from Base
Instance Method Summary collapse
- #batches(options, &block) ⇒ Enumerator<Batch> private
- #call(options) ⇒ Collection
-
#initialize(options) ⇒ HasManyOperation
constructor
A new instance of HasManyOperation.
Constructor Details
#initialize(options) ⇒ HasManyOperation
Returns a new instance of HasManyOperation.
97 98 99 100 |
# File 'lib/aws-sdk-resources/operations.rb', line 97 def initialize() @limit_key = [:limit_key] super end |
Instance Attribute Details
#builder ⇒ Builder (readonly)
103 104 105 |
# File 'lib/aws-sdk-resources/operations.rb', line 103 def builder @builder end |
#limit_key ⇒ Symbol? (readonly)
106 107 108 |
# File 'lib/aws-sdk-resources/operations.rb', line 106 def limit_key @limit_key end |
Instance Method Details
#batches(options, &block) ⇒ Enumerator<Batch>
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.
117 118 119 120 121 122 123 |
# File 'lib/aws-sdk-resources/operations.rb', line 117 def batches(, &block) if [:limit] enum_for(:limited_batches, [:limit], , &block) else enum_for(:all_batches, , &block) end end |
#call(options) ⇒ Collection
110 111 112 113 |
# File 'lib/aws-sdk-resources/operations.rb', line 110 def call() validate_args!() Collection.new(self, ) end |