Class: AWS::EC2::Collection

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

Instance Attribute Summary

Attributes included from Core::Model

#config

Instance Method Summary collapse

Methods included from FilteredCollection

#filter, #filtered_request, #initialize

Methods included from Core::Model

#client, #config_prefix, #initialize, #inspect

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