Class: Aws::AutoScaling::FleetGroupCollection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/aws-sdk-autoscaling/fleet_group_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fleet) ⇒ FleetGroupCollection

Returns a new instance of FleetGroupCollection.



5
6
7
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 5

def initialize fleet
  @fleet = fleet
end

Instance Attribute Details

#fleetFleet (readonly)

Returns:



10
11
12
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 10

def fleet
  @fleet
end

Instance Method Details

#<<(group) ⇒ Object

Add an existing group to a Fleet.

Parameters:

  • The (Group)

    group to add.



15
16
17
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 15

def << group
  group.set_fleet @fleet.name
end

#eachObject



19
20
21
22
23
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 19

def each
  @fleet.tags.each do |t|
    yield @fleet.group_for_tag(t)
  end
end