class AWS::EC2::ReservedInstancesOfferingCollection

Public Instance Methods

member_class() click to toggle source
# File lib/aws/ec2/reserved_instances_offering_collection.rb, line 21
def member_class
  ReservedInstancesOffering
end

Protected Instance Methods

_each_item(next_token, max_results, options = {}) { |reserved_instance_offering| ... } click to toggle source
# File lib/aws/ec2/reserved_instances_offering_collection.rb, line 27
def _each_item(next_token, max_results, options = {}, &block)
  options[:next_token] = next_token if next_token
  options[:max_results] = max_results if max_results
  resp = filtered_request(:describe_reserved_instances_offerings, options)
  resp.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
  resp[:next_token]
end