class AWS::EC2::AttachmentCollection

@see Volume
volume.
Represents the collection of attachments for an Amazon EBS

def each &block

Returns:
  • (nil) -

Other tags:
    Yield: - Each attachment of the volume as an
def each &block
  volume.attachment_set.each do |item|
    instance = Instance.new(item.instance_id, :config => config)
    attachment = Attachment.new(self.volume, instance, item.device, 
      :config => config)
    yield(attachment)
  end
  nil
end

def initialize volume, options = {}

Other tags:
    Private: -
def initialize volume, options = {}
  @volume = volume
  super
end