# File lib/aws/auto_scaling/activity_collection.rb, line 59 def _each_item next_token, limit, options = {}, &block options[:next_token] = next_token if next_token options[:max_records] = limit if limit options[:auto_scaling_group_name] = @group.name if @group resp = client.describe_scaling_activities(options) resp.activities.each do |details| activity = Activity.new_from( :describe_scaling_activities, details, details.activity_id, :config => config) yield(activity) end resp.next_token if resp.respond_to?(:next_token) end