Module: Genability::Client::Territory
- Included in:
- Genability::Client
- Defined in:
- lib/genability/client/territory.rb
Overview
Territories define the areas of coverage for Load Serving Entities and in some cases for individual tariffs. The areas of coverage can be at these levels:
- State
- County
- City
- Zip Code
Territories can have one of these two usage types:
- Service - defines the areas where this LSE provides service
- Tariff - defines the areas where a particular tariff rate applies to. These types of territories are typically defined by the LSE.
We define a Service Territory for each state that an LSE provides coverage. The usageType attribute specifies how this definition is done, either at the State, County, City or Zip Code level.
Instance Method Summary collapse
-
#territories(options = {}) ⇒ Array
Returns a list of territories.
-
#territory(territory_id, options = {}) ⇒ Hashie::Mash
Returns one territory.
Instance Method Details
#territories(options = {}) ⇒ Array
Returns a list of territories.
97 98 99 |
# File 'lib/genability/client/territory.rb', line 97 def territories( = {}) get("public/territories", territories_params()).results end |
#territory(territory_id, options = {}) ⇒ Hashie::Mash
Returns one territory.
38 39 40 |
# File 'lib/genability/client/territory.rb', line 38 def territory(territory_id, = {}) get("public/territories/#{territory_id}", territory_params()).results.first end |