Class: AWS::EC2::ReservedInstancesCollection
- Inherits:
-
Collection
- Object
- Collection
- AWS::EC2::ReservedInstancesCollection
- Includes:
- TaggedCollection
- Defined in:
- lib/aws/ec2/reserved_instances_collection.rb
Instance Method Summary collapse
Methods included from TaggedCollection
Methods inherited from Collection
Methods included from FilteredCollection
Instance Method Details
#each(&block) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/aws/ec2/reserved_instances_collection.rb', line 24 def each &block response = filtered_request(:describe_reserved_instances) response.reserved_instances_set.each do |item| reserved_instance = ReservedInstances.new_from( :describe_reserved_instances, item, item.reserved_instances_id, :config => config) yield(reserved_instance) end end |
#member_class ⇒ Object
20 21 22 |
# File 'lib/aws/ec2/reserved_instances_collection.rb', line 20 def member_class ReservedInstances end |