Class: AWS::EC2::ReservedInstancesOfferingCollection

Inherits:
Collection
  • Object
show all
Includes:
TaggedCollection
Defined in:
lib/aws/ec2/reserved_instances_offering_collection.rb

Instance Attribute Summary

Attributes included from Core::Model

#config

Instance Method Summary collapse

Methods included from TaggedCollection

#tagged, #tagged_values

Methods inherited from Collection

#[]

Methods included from FilteredCollection

#filter, #filtered_request, #initialize

Methods included from Core::Model

#client, #config_prefix, #initialize, #inspect

Instance Method Details

#each(&block) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/aws/ec2/reserved_instances_offering_collection.rb', line 24

def each &block
  response = filtered_request(:describe_reserved_instances_offerings)
  response.reserved_instances_offerings_set.each do |item|

    reserved_instance_offering = ReservedInstancesOffering.new_from(
      :describe_reserved_instances_offerings, item, 
      item.reserved_instances_offering_id, :config => config)

    yield(reserved_instance_offering)

  end
end

#member_classObject



20
21
22
# File 'lib/aws/ec2/reserved_instances_offering_collection.rb', line 20

def member_class
  ReservedInstancesOffering
end