Class: Aws::AutoScaling::FleetGroupCollection
- Inherits:
-
Object
- Object
- Aws::AutoScaling::FleetGroupCollection
- Includes:
- Enumerable
- Defined in:
- lib/aws-sdk-autoscaling/fleet_group_collection.rb
Instance Attribute Summary collapse
- #fleet ⇒ Fleet readonly
Instance Method Summary collapse
-
#<<(group) ⇒ Object
Add an existing group to a Fleet.
- #each ⇒ Object
-
#initialize(fleet) ⇒ FleetGroupCollection
constructor
A new instance of FleetGroupCollection.
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
#fleet ⇒ Fleet (readonly)
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.
15 16 17 |
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 15 def << group group.set_fleet @fleet.name end |
#each ⇒ Object
19 20 21 22 23 |
# File 'lib/aws-sdk-autoscaling/fleet_group_collection.rb', line 19 def each @fleet..each do |t| yield @fleet.group_for_tag(t) end end |