Module | AWS::Core::Collection::Limitable |
In: |
lib/aws/core/collection/limitable.rb
|
AWS::Core::Collection::Limitable is used by collections that may truncate responses but that also accept a upper limit of results to return in a single request.
See {AWS::Core::Collection} for documentation on the available methods.
This method should be overriden in collection classes when there is another method to provide a "limit" besides as an option to the enumerable methods.
SimpleDB::ItemCollection (for example) allows setting the limit in a method chain, e.g.
collection.limit(10).each {|item| ... }
These collection classes can simply override _limit and return their prefered limit. This is only called in the abscense of the +:limit+ option.
@private