def activities(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(auto_scaling_group_name: @name)
        resp = @client.describe_scaling_activities(options)
        resp.each_page do |page|
          batch = []
          page.data.activities.each do |a|
            batch << Activity.new(
              id: a.activity_id,
              data: a,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      Activity::Collection.new(batches)
    end
def activities(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(auto_scaling_group_name: @name)
        resp = @client.describe_scaling_activities(options)
        resp.each_page do |page|
          batch = []
          page.data.activities.each do |a|
            batch << Activity.new(
              id: a.activity_id,
              data: a,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      Activity::Collection.new(batches)
    end
@!group Associations
 @example Request syntax with placeholder values

   activities = auto_scaling_group.activities({
     activity_ids: ["XmlString"],
   })
 @param [Hash] options ({})
 @option options [Array<String>] :activity_ids
   The activity IDs of the desired scaling activities. You can specify up
   to 50 IDs. If you omit this parameter, all activities for the past six
   weeks are described. If unknown activities are requested, they are
   ignored with no error. If you specify an Auto Scaling group, the
   results are limited to that group.
 @return [Activity::Collection]