Class: Carmen::RegionCollection

Inherits:
Array
  • Object
show all
Includes:
Querying
Defined in:
lib/carmen/region_collection.rb

Overview

RegionCollection is responsible for holding the subregions for a region and also provides an interface to query said subregions.

Example:

states = Carmen::Country.coded('US').subregions
=> #<RegionCollection>
states.size
=> 5
states.named('Illinois')
=> #<Region name:"Illinois" code: "IL">

Method Summary

Methods included from Querying

#coded, #named