class AWS::EC2::RegionCollection
ec2.regions.inject({}) { |m, r| m = r.endpoint; m }
@example Getting a map of endpoints by region name
Represents all the regions available to your account.
def [](name)
-
(Region)
- The region identified by the given name
def [](name) super end
def each
-
(nil)
-
Other tags:
- Yield: - Each region that is available to your account.
def each response = filtered_request(:describe_regions) response.region_info.each do |r| region = Region.new(r.region_name, :endpoint => r.region_endpoint, :config => config) yield(region) end nil end
def member_class
def member_class Region end