You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::EC2::Collection

Inherits:
Object
  • Object
show all
Includes:
FilteredCollection, Enumerable
Defined in:
lib/aws/ec2/collection.rb

Instance Method Summary collapse

Methods included from FilteredCollection

#filter, #initialize

Instance Method Details

#[](id) ⇒ Object

Parameters:

  • id (String)

    Returns the collection member with the given id.



24
25
26
# File 'lib/aws/ec2/collection.rb', line 24

def [] id
  member_class.new(id.to_s, :config => config)
end