genability 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +13 -12
- data/README.md +40 -6
- data/VERSION +1 -1
- data/genability.gemspec +12 -12
- data/lib/faraday/request/url_encoding_fix.rb +1 -1
- data/lib/genability.rb +5 -3
- data/lib/genability/api.rb +0 -3
- data/lib/genability/client.rb +4 -0
- data/lib/genability/client/calculate.rb +44 -16
- data/lib/genability/client/echo.rb +4 -4
- data/lib/genability/client/helpers.rb +49 -4
- data/lib/genability/client/load_serving_entity.rb +46 -16
- data/lib/genability/client/price.rb +1 -1
- data/lib/genability/client/property.rb +30 -2
- data/lib/genability/client/season.rb +39 -2
- data/lib/genability/client/tariff.rb +63 -12
- data/lib/genability/client/territory.rb +53 -8
- data/lib/genability/client/time_of_use.rb +53 -9
- data/lib/genability/connection.rb +2 -0
- data/lib/genability/error.rb +1 -1
- data/lib/genability/request.rb +7 -2
- data/lib/mashie_extensions.rb +9 -1
- data/spec/cassettes/calculate.yml +65 -38
- data/spec/cassettes/echo.yml +77 -37
- data/spec/cassettes/load_serving_entities.yml +294 -106
- data/spec/cassettes/load_serving_entity.yml +23 -18
- data/spec/cassettes/prices.yml +91 -35
- data/spec/cassettes/properties.yml +178 -35
- data/spec/cassettes/property.yml +31 -19
- data/spec/cassettes/seasons.yml +24 -18
- data/spec/cassettes/tariff.yml +82 -18
- data/spec/cassettes/tariffs.yml +259 -69
- data/spec/cassettes/territories.yml +67 -35
- data/spec/cassettes/territory.yml +24 -18
- data/spec/cassettes/time_of_use.yml +47 -18
- data/spec/cassettes/time_of_uses.yml +24 -18
- data/spec/cassettes/zipcode.yml +25 -18
- data/spec/client/calculate_spec.rb +6 -6
- data/spec/client/echo_spec.rb +6 -6
- data/spec/client/load_serving_entity_spec.rb +15 -7
- data/spec/client/tariff_spec.rb +10 -2
- data/spec/spec_helper.rb +6 -0
- metadata +170 -110
@@ -1,28 +1,33 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: http://api.genability.com:80/rest/public/lses/2756?appId=ValidAppID&appKey=ValidAppKey
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
9
|
- application/json; charset=utf-8
|
10
|
-
user-agent:
|
10
|
+
user-agent:
|
11
11
|
- Genability API Ruby Gem
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
access-control-allow-origin:
|
20
|
+
- ! '*'
|
21
|
+
content-type:
|
22
22
|
- application/json;charset=utf-8
|
23
|
-
|
23
|
+
date:
|
24
|
+
- Sat, 05 May 2012 18:43:42 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.16 (Ubuntu)
|
27
|
+
transfer-encoding:
|
24
28
|
- chunked
|
25
|
-
|
26
|
-
-
|
27
|
-
body:
|
28
|
-
|
29
|
+
connection:
|
30
|
+
- keep-alive
|
31
|
+
body: ! '{"status":"success","count":1,"type":"LoadServingEntity","results":[{"lseId":2756,"name":"Georgia
|
32
|
+
Power Co","code":"7140","websiteHome":"http://www.georgiapower.com/"}]}'
|
33
|
+
http_version: '1.1'
|
data/spec/cassettes/prices.yml
CHANGED
@@ -1,55 +1,111 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: http://api.genability.com:80/rest/public/prices/520?appId=ValidAppID&appKey=ValidAppKey&fromDateTime=2011-07-01T09:38:22.7-0400
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
9
|
- application/json; charset=utf-8
|
10
|
-
user-agent:
|
10
|
+
user-agent:
|
11
11
|
- Genability API Ruby Gem
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
access-control-allow-origin:
|
20
|
+
- ! '*'
|
21
|
+
content-type:
|
22
22
|
- application/json;charset=utf-8
|
23
|
-
|
23
|
+
date:
|
24
|
+
- Sat, 05 May 2012 18:43:43 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.16 (Ubuntu)
|
27
|
+
transfer-encoding:
|
24
28
|
- chunked
|
25
|
-
|
26
|
-
-
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
connection:
|
30
|
+
- keep-alive
|
31
|
+
body: ! '{"status":"success","count":2,"type":"TariffRateSummary","results":[{"tariffId":520,"chargeType":"MINIMUM","quantityKey":null,"fromDateTime":"2011-07-01T06:38:22-07:00","toDateTime":"2011-07-08T06:38:22-07:00","rateAmount":0.158810,"relativePriceIndex":1.00,"currency":"USD","priceChanges":[],"name":"MINIMUM
|
32
|
+
rate change"},{"tariffId":520,"chargeType":"CONSUMPTION_BASED","quantityKey":"consumption","fromDateTime":"2011-07-01T06:38:22-07:00","toDateTime":"2011-07-08T06:38:22-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"currency":"USD","priceChanges":[{"changeName":"Summer
|
33
|
+
Partial Peak","changeDateTime":"2011-07-01T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
34
|
+
Peak","changeDateTime":"2011-07-01T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
35
|
+
Partial Peak","changeDateTime":"2011-07-01T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
36
|
+
Peak","changeDateTime":"2011-07-01T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"CONSUMPTION_BASED
|
37
|
+
rate change","changeDateTime":"2011-07-02T17:00:00-07:00","rateAmount":0.047530,"relativePriceIndex":0.10,"accuracy":1},{"changeName":"Summer Off
|
38
|
+
Peak","changeDateTime":"2011-07-02T20:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"CONSUMPTION_BASED
|
39
|
+
rate change","changeDateTime":"2011-07-03T17:00:00-07:00","rateAmount":0.047530,"relativePriceIndex":0.10,"accuracy":1},{"changeName":"Summer Off
|
40
|
+
Peak","changeDateTime":"2011-07-03T20:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
41
|
+
Partial Peak","changeDateTime":"2011-07-05T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
42
|
+
Peak","changeDateTime":"2011-07-05T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
43
|
+
Partial Peak","changeDateTime":"2011-07-05T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
44
|
+
Peak","changeDateTime":"2011-07-05T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
45
|
+
Partial Peak","changeDateTime":"2011-07-06T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
46
|
+
Peak","changeDateTime":"2011-07-06T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
47
|
+
Partial Peak","changeDateTime":"2011-07-06T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
48
|
+
Peak","changeDateTime":"2011-07-06T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
49
|
+
Partial Peak","changeDateTime":"2011-07-07T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
50
|
+
Peak","changeDateTime":"2011-07-07T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
51
|
+
Partial Peak","changeDateTime":"2011-07-07T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
52
|
+
Peak","changeDateTime":"2011-07-07T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1}],"name":"Summer Off
|
53
|
+
Peak"}]}'
|
54
|
+
http_version: '1.1'
|
55
|
+
- !ruby/struct:VCR::HTTPInteraction
|
56
|
+
request: !ruby/struct:VCR::Request
|
31
57
|
method: :get
|
32
58
|
uri: http://api.genability.com:80/rest/public/prices/520?appId=ValidAppID&appKey=ValidAppKey&consumptionAmount=500&fromDateTime=2011-06-24T09:38:22.7-0400&toDateTime=2011-07-01T09:38:22.7-0400
|
33
59
|
body:
|
34
|
-
headers:
|
35
|
-
accept:
|
60
|
+
headers:
|
61
|
+
accept:
|
36
62
|
- application/json; charset=utf-8
|
37
|
-
user-agent:
|
63
|
+
user-agent:
|
38
64
|
- Genability API Ruby Gem
|
39
|
-
accept-encoding:
|
65
|
+
accept-encoding:
|
40
66
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
-
response: !ruby/struct:VCR::Response
|
42
|
-
status: !ruby/struct:VCR::ResponseStatus
|
67
|
+
response: !ruby/struct:VCR::Response
|
68
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
69
|
code: 200
|
44
70
|
message: OK
|
45
|
-
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
content-type:
|
71
|
+
headers:
|
72
|
+
access-control-allow-origin:
|
73
|
+
- ! '*'
|
74
|
+
content-type:
|
49
75
|
- application/json;charset=utf-8
|
50
|
-
|
76
|
+
date:
|
77
|
+
- Sat, 05 May 2012 18:43:43 GMT
|
78
|
+
server:
|
79
|
+
- Apache/2.2.16 (Ubuntu)
|
80
|
+
transfer-encoding:
|
51
81
|
- chunked
|
52
|
-
|
53
|
-
-
|
54
|
-
body:
|
55
|
-
|
82
|
+
connection:
|
83
|
+
- keep-alive
|
84
|
+
body: ! '{"status":"success","count":2,"type":"TariffRateSummary","results":[{"tariffId":520,"chargeType":"MINIMUM","quantityKey":null,"fromDateTime":"2011-06-24T06:38:22-07:00","toDateTime":"2011-07-01T06:38:22-07:00","rateAmount":0.158810,"relativePriceIndex":1.00,"currency":"USD","priceChanges":[],"name":"MINIMUM
|
85
|
+
rate change"},{"tariffId":520,"chargeType":"CONSUMPTION_BASED","quantityKey":"consumption","fromDateTime":"2011-06-24T06:38:22-07:00","toDateTime":"2011-07-01T06:38:22-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"currency":"USD","priceChanges":[{"changeName":"Summer
|
86
|
+
Partial Peak","changeDateTime":"2011-06-24T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
87
|
+
Peak","changeDateTime":"2011-06-24T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
88
|
+
Partial Peak","changeDateTime":"2011-06-24T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
89
|
+
Peak","changeDateTime":"2011-06-24T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"CONSUMPTION_BASED
|
90
|
+
rate change","changeDateTime":"2011-06-25T17:00:00-07:00","rateAmount":0.047530,"relativePriceIndex":0.10,"accuracy":1},{"changeName":"Summer Off
|
91
|
+
Peak","changeDateTime":"2011-06-25T20:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"CONSUMPTION_BASED
|
92
|
+
rate change","changeDateTime":"2011-06-26T17:00:00-07:00","rateAmount":0.047530,"relativePriceIndex":0.10,"accuracy":1},{"changeName":"Summer Off
|
93
|
+
Peak","changeDateTime":"2011-06-26T20:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
94
|
+
Partial Peak","changeDateTime":"2011-06-27T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
95
|
+
Peak","changeDateTime":"2011-06-27T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
96
|
+
Partial Peak","changeDateTime":"2011-06-27T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
97
|
+
Peak","changeDateTime":"2011-06-27T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
98
|
+
Partial Peak","changeDateTime":"2011-06-28T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
99
|
+
Peak","changeDateTime":"2011-06-28T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
100
|
+
Partial Peak","changeDateTime":"2011-06-28T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
101
|
+
Peak","changeDateTime":"2011-06-28T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
102
|
+
Partial Peak","changeDateTime":"2011-06-29T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
103
|
+
Peak","changeDateTime":"2011-06-29T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
104
|
+
Partial Peak","changeDateTime":"2011-06-29T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
105
|
+
Peak","changeDateTime":"2011-06-29T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1},{"changeName":"Summer
|
106
|
+
Partial Peak","changeDateTime":"2011-06-30T10:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer
|
107
|
+
Peak","changeDateTime":"2011-06-30T13:00:00-07:00","rateAmount":0.490320,"relativePriceIndex":1.00,"accuracy":1},{"changeName":"Summer
|
108
|
+
Partial Peak","changeDateTime":"2011-06-30T19:00:00-07:00","rateAmount":0.381670,"relativePriceIndex":0.78,"accuracy":1},{"changeName":"Summer Off
|
109
|
+
Peak","changeDateTime":"2011-06-30T21:00:00-07:00","rateAmount":0.309300,"relativePriceIndex":0.63,"accuracy":1}],"name":"Summer Off
|
110
|
+
Peak"}]}'
|
111
|
+
http_version: '1.1'
|
@@ -1,55 +1,198 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: http://api.genability.com:80/rest/public/properties?appId=ValidAppID&appKey=ValidAppKey
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
9
|
- application/json; charset=utf-8
|
10
|
-
user-agent:
|
10
|
+
user-agent:
|
11
11
|
- Genability API Ruby Gem
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
access-control-allow-origin:
|
20
|
+
- ! '*'
|
21
|
+
content-type:
|
22
22
|
- application/json;charset=utf-8
|
23
|
-
|
23
|
+
date:
|
24
|
+
- Sat, 05 May 2012 18:43:44 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.16 (Ubuntu)
|
27
|
+
transfer-encoding:
|
24
28
|
- chunked
|
25
|
-
|
26
|
-
-
|
27
|
-
body:
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
connection:
|
30
|
+
- keep-alive
|
31
|
+
body: ! '{"status":"success","count":4322,"type":"PropertyKey","results":[{"keyName":"1000kWhBlock","displayName":"1000
|
32
|
+
kWh Block ","family":"load","keyspace":"electricity","description":"Number of
|
33
|
+
kWh Blocks of Green Energy the Customer Purchased \r\n\r\n","dataType":"INTEGER","entityType":"LSE","entityId":744},{"keyName":"1000kWhBlockRenewableResourcesPremium","displayName":"Number
|
34
|
+
of 1000 kWh Renewable Blocks","family":"incentive","keyspace":"electricity","description":"Number
|
35
|
+
of 1000 kWh blocks of Renewable Resources Premium","dataType":"INTEGER","entityType":"LSE","entityId":2388},{"keyName":"1000LumenIncandescentLampCount","displayName":"Number
|
36
|
+
of 1000 Lumen Incandescent Lamps","family":"fixture","keyspace":"electricity","description":"Number
|
37
|
+
of 1000 Lumen Incandenscent Lamps (Overhead Supply) contracted by the customer.","dataType":"INTEGER","entityType":"LSE","entityId":799},{"keyName":"1000wattMercuryVaporLamp","displayName":"Number
|
38
|
+
of 1000 Watt Mercury Vapor Lamps","family":"fixture","keyspace":"electricity","description":"Number
|
39
|
+
of 1000 Watt Mercury Vapor Lamps.","dataType":"INTEGER","entityType":"LSE","entityId":172},{"keyName":"100kwhBlock","displayName":"Number
|
40
|
+
of 100 kWh Green Energy Blocks ","family":"incentive","keyspace":"electricity","description":"Number
|
41
|
+
of 100 kwh blocks of Green Energy Purchased","dataType":"INTEGER"},{"keyName":"100kWhBlockIncrement","displayName":"100
|
42
|
+
kWh Block Increment","family":"load","keyspace":"electricity","description":"Customers
|
43
|
+
monthly energy for which the customer has contracted. Customer may contract,
|
44
|
+
in 100 kWh increments, up to customers total firm load as used under the standard
|
45
|
+
filed tariff rate.","dataType":"INTEGER","entityType":"LSE","entityId":913},{"keyName":"100kWhBlockPremiumGreenEnergy","displayName":"Number
|
46
|
+
of 100 kWh Green Energy Blocks ","family":"incentive","keyspace":"electricity","description":"Number
|
47
|
+
of 100kwh blocks of Premium Green Energy","dataType":"INTEGER","entityType":"LSE","entityId":2756},{"keyName":"100kWhBlockRenewableEnergy","displayName":"Number
|
48
|
+
of 100 kWh Green Energy Blocks ","family":"incentive","keyspace":"electricity","description":"Number
|
49
|
+
of 100 kWh blocks of Renewable Energy","dataType":"INTEGER"},{"keyName":"100kWhBlockStandardGreenEnergy","displayName":"Number
|
50
|
+
of 100 kWh Green Energy Blocks ","family":"incentive","keyspace":"electricity","description":"Number
|
51
|
+
of 100kwh blocks of standard green energy","dataType":"INTEGER","entityType":"LSE","entityId":2756},{"keyName":"100kWhWindEnergyRenewable","displayName":"Number
|
52
|
+
of 100 kWh Wind Energy Blocks ","family":"incentive","keyspace":"electricity","description":"One
|
53
|
+
Wind Energy Block equals 100 kilowatt-hours of Wind Energy Renewable Attributes.","dataType":"INTEGER","entityType":"LSE","entityId":1676},{"keyName":"100WattBlock","displayName":"100
|
54
|
+
Watt Block","family":"load","keyspace":"electricity","description":"Photovoltaic
|
55
|
+
energy in 100-watt blocks","dataType":"INTEGER","entityType":"LSE","entityId":2861},{"keyName":"100wattHighPressureSodiumLamp","displayName":"Number
|
56
|
+
of 100 Watt High Pressure Sodium Lamps","family":"fixture","keyspace":"electricity","description":"Number
|
57
|
+
of 100 Watt High Pressure Sodium Lamps","dataType":"INTEGER","entityType":"LSE","entityId":876},{"keyName":"1055formula1","displayName":"Formula
|
58
|
+
for LSE 1055","family":"tariff","keyspace":"electricity","description":"This
|
59
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
60
|
+
placeholder","entityType":"LSE","entityId":1055},{"keyName":"1065formula1","displayName":"Formula
|
61
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
62
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #IIKilowattHour","entityType":"LSE","entityId":1065},{"keyName":"1065formula2","displayName":"Formula
|
63
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
64
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
65
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula3","displayName":"Formula
|
66
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
67
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #IIKilowattHour","entityType":"LSE","entityId":1065},{"keyName":"1065formula4","displayName":"Formula
|
68
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
69
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
70
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula5","displayName":"Formula
|
71
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
72
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
73
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula6","displayName":"Formula
|
74
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
75
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
76
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula7","displayName":"Formula
|
77
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
78
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
79
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula8","displayName":"Formula
|
80
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
81
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
82
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1065formula9","displayName":"Formula
|
83
|
+
for LSE 1065","family":"tariff","keyspace":"electricity","description":"This
|
84
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
85
|
+
placeholder","entityType":"LSE","entityId":1065},{"keyName":"1071formula1","displayName":"Formula
|
86
|
+
for LSE 1071","family":"tariff","keyspace":"electricity","description":"This
|
87
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
88
|
+
placeholder","entityType":"LSE","entityId":1071},{"keyName":"1086formula1","displayName":"Formula
|
89
|
+
for LSE 1086","family":"tariff","keyspace":"electricity","description":"This
|
90
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
91
|
+
placeholder","entityType":"LSE","entityId":1086},{"keyName":"1116formula1","displayName":"Formula
|
92
|
+
for LSE 1116","family":"tariff","keyspace":"electricity","description":"This
|
93
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
94
|
+
placeholder","entityType":"LSE","entityId":1116}]}'
|
95
|
+
http_version: '1.1'
|
96
|
+
- !ruby/struct:VCR::HTTPInteraction
|
97
|
+
request: !ruby/struct:VCR::Request
|
31
98
|
method: :get
|
32
99
|
uri: http://api.genability.com:80/rest/public/properties?appId=ValidAppID&appKey=ValidAppKey&entityId=734&entityType=LSE
|
33
100
|
body:
|
34
|
-
headers:
|
35
|
-
accept:
|
101
|
+
headers:
|
102
|
+
accept:
|
36
103
|
- application/json; charset=utf-8
|
37
|
-
user-agent:
|
104
|
+
user-agent:
|
38
105
|
- Genability API Ruby Gem
|
39
|
-
accept-encoding:
|
106
|
+
accept-encoding:
|
40
107
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
-
response: !ruby/struct:VCR::Response
|
42
|
-
status: !ruby/struct:VCR::ResponseStatus
|
108
|
+
response: !ruby/struct:VCR::Response
|
109
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
110
|
code: 200
|
44
111
|
message: OK
|
45
|
-
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
content-type:
|
112
|
+
headers:
|
113
|
+
access-control-allow-origin:
|
114
|
+
- ! '*'
|
115
|
+
content-type:
|
49
116
|
- application/json;charset=utf-8
|
50
|
-
|
117
|
+
date:
|
118
|
+
- Sat, 05 May 2012 18:43:45 GMT
|
119
|
+
server:
|
120
|
+
- Apache/2.2.16 (Ubuntu)
|
121
|
+
transfer-encoding:
|
51
122
|
- chunked
|
52
|
-
|
53
|
-
-
|
54
|
-
body: "{\"status\":\"success\",\"count\":28,\"type\":\"PropertyKey\",\"results\":[{\"keyName\":\"734formula1\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula10\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel - #demand\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula11\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel - #demand\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula2\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula3\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula4\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel * #tariffRateBand.demandUpperLimit\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula5\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula6\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"formula placeholder\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula7\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"formula placeholder\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula8\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel - #demand\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"734formula9\",\"displayName\":\"Formula for LSE 734\",\"family\":\"tariff\",\"keyspace\":\"electricity\",\"description\":\"This is a specific formula for this LSE.\",\"dataType\":\"FORMULA\",\"choices\":[],\"formulaDetail\":\"#capacityReservationLevel - #demand\",\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"capacityReservationLevel\",\"displayName\":\"Capacity Reservation Level\",\"family\":\"load\",\"keyspace\":\"electricity\",\"description\":\"Customers may elect a capacity reservation level(CRL) and pay for a fixed level of capacity, specified in kW, during the summer period. Customers electing a CRL will be billed on a take-or-pay basis up to the specified CRL under the non-PDP rate. During a Peak Day Pricing(PDP) event, all usage below the CRL will be billed under the non-PDP rate and all above at the PDP rate. If a customer fails to elect a CRL, the CRL will be set at 50% of average peak-period maximum demand. If there is no billing history, CRL will be set to 0.\",\"dataType\":\"INTEGER\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"hasInternalCombustionEngineIrrigationPump\",\"displayName\":\"Has Internal combustion engine irrigation pump\",\"family\":\"motorsEngines\",\"keyspace\":\"electricity\",\"description\":\"customer has an internal combustion engine irrigation pump\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"hasMeterDataAccess\",\"displayName\":\"Has Meter Data Access\",\"family\":\"metering\",\"keyspace\":\"electricity\",\"description\":\"Customer has access to meter data\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"hasSmartMeter\",\"displayName\":\"Has Smart Meter\",\"family\":\"metering\",\"keyspace\":\"electricity\",\"description\":\"Customer has Smart Meter installed\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"isAgriculturalCustomer\",\"displayName\":\"Is Agricultural Customer\",\"family\":\"customerStatus\",\"keyspace\":\"electricity\",\"description\":\"Customer qualifies as an agricultural customer\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"isPGEOwned\",\"displayName\":\"Is PGE Owned Street Lighting\",\"family\":\"fixture\",\"keyspace\":\"electricity\",\"description\":\"Lighting is owned by Pacific Gas & Electric\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"numberOfBillingMeterswithDataAccess\",\"displayName\":\"Number of Billing Meters with Data Access\",\"family\":\"metering\",\"keyspace\":\"electricity\",\"description\":\"Number of Billing Meters with data access\",\"dataType\":\"INTEGER\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"pdpProgramOption\",\"displayName\":\"PDP Program Option\",\"family\":\"billing\",\"keyspace\":\"electricity\",\"description\":\"Participants in some Peak Day Pricing (PDP) are required to select 1) either no limit on the number of consecutive PDP events or alternating PDP events and 2) whether the PDP events will be in effect for four or six hours. The rates of credit and charge change according to the selections made by the customer.\",\"dataType\":\"CHOICE\",\"choices\":[{\"value\":\"No Limit - Four Hour Window\",\"displayValue\":\"No Limit - Four Hour Window\"},{\"value\":\"No Limit - Six Hour Window\",\"displayValue\":\"No Limit - Six Hour Window\"},{\"value\":\"Alternating Days - Four Hour Window\",\"displayValue\":\"Alternating Days - Four Hour Window\"},{\"value\":\"Alternating Days - Six Hour Window\",\"displayValue\":\"Alternating Days - Six Hour Window\"}],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"pdpProgramOptionwConnectionType\",\"displayName\":\"PDP Program Option with Connection Type\",\"family\":\"billing\",\"keyspace\":\"electricity\",\"description\":\"Connection Type (Secondary, Primary, or Transmission) plus the PDP Program Options listed below: Participants in some Peak Day Pricing (PDP) are required to select 1) either no limit on the number of consecutive PDP events or alternating PDP events and 2) whether the PDP events will be in effect for four or six hours. The rates of credit and charge change according to the selections made by the customer. \",\"dataType\":\"CHOICE\",\"choices\":[{\"value\":\"Secondary Connection - Four Hour Window - No Limit\",\"displayValue\":\"Secondary Connection - Four Hour Window - No Limit\"},{\"value\":\"Secondary Connection - Four Hour Window - Alternating Days\",\"displayValue\":\"Secondary Connection - Four Hour Window - Alternating Days\"},{\"value\":\"Secondary Connection - Six Hour Window - No Limit\",\"displayValue\":\"Secondary Connection - Six Hour Window - No Limit\"},{\"value\":\"Secondary Connection - Six Hour Window - Alternating Days\",\"displayValue\":\"Secondary Connection - Six Hour Window - Alternating Days\"},{\"value\":\"Primary Connection - Four Hour Window - No Limit\",\"displayValue\":\"Primary Connection - Four Hour Window - No Limit\"},{\"value\":\"Primary Connection - Four Hour Window - Alternating Days\",\"displayValue\":\"Primary Connection - Four Hour Window - Alternating Days\"},{\"value\":\"Primary Connection - Six Hour Window - No Limit\",\"displayValue\":\"Primary Connection - Six Hour Window - No Limit\"},{\"value\":\"Primary Connection - Six Hour Window - Alternating Days\",\"displayValue\":\"Primary Connection - Six Hour Window - Alternating Days\"},{\"value\":\"Transmission Connection - Four Hour Window - No Limit\",\"displayValue\":\"Transmission Connection - Four Hour Window - No Limit\"},{\"value\":\"Transmission Connection - Four Hour Window - Alternating Days\",\"displayValue\":\"Transmission Connection - Four Hour Window - Alternating Days\"},{\"value\":\"Transmission Connection - Six Hour Window - No Limit\",\"displayValue\":\"Transmission Connection - Six Hour Window - No Limit\"},{\"value\":\"Transmission Connection - Six Hour Window - Alternating Days\",\"displayValue\":\"Transmission Connection - Six Hour Window - Alternating Days\"}],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"percentageOfAgriculturalEnergyUsePGE\",\"displayName\":\"Percentage of Agricultural Energy Use PGE\",\"family\":\"customerStatus\",\"keyspace\":\"electricity\",\"description\":\"percentage of total energy usage is devoted to agricultural purposes.\",\"dataType\":\"INTEGER\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"ratesUnderScheduleA6\",\"displayName\":\"Rates under Schedule A-6\",\"family\":\"load\",\"keyspace\":\"electricity\",\"description\":\"Customer will be served under one of these rates for schedule A-6\",\"dataType\":\"CHOICE\",\"choices\":[{\"value\":\"Rate W\",\"displayValue\":\"Rate W\"},{\"value\":\"Rate X\",\"displayValue\":\"Rate X\"},{\"value\":\"Rate A-6\",\"displayValue\":\"Rate A-6\"}],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"ratesUnderScheduleAG5forPGE\",\"displayName\":\"Rates under Schedule AG-5 for PGE\",\"family\":\"billing\",\"keyspace\":\"electricity\",\"description\":\"The rate the customer will be served under one of the rates under Schedule AG-5: Rate A,B,C,D,E,F\",\"dataType\":\"CHOICE\",\"choices\":[{\"value\":\"Rate A\",\"displayValue\":\"Rate A\"},{\"value\":\"Rate B\",\"displayValue\":\"Rate B\"},{\"value\":\"Rate C\",\"displayValue\":\"Rate C\"},{\"value\":\"Rate D\",\"displayValue\":\"Rate D\"},{\"value\":\"Rate E\",\"displayValue\":\"Rate E\"},{\"value\":\"Rate F\",\"displayValue\":\"Rate F\"}],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"receivesBundledService\",\"displayName\":\"Receives Bundled Service\",\"family\":\"service\",\"keyspace\":\"electricity\",\"description\":\"Does the customer receive bundled service\",\"dataType\":\"BOOLEAN\",\"choices\":[],\"entityType\":\"LSE\",\"entityId\":734},{\"keyName\":\"streetLightingClassesPGE\",\"displayName\":\"Street Lighting Classes PGE\",\"family\":\"fixture\",\"keyspace\":\"electricity\",\"description\":\"Classes of services for Street Lighting \",\"dataType\":\"CHOICE\",\"choices\":[{\"value\":\"Class A\",\"displayValue\":\"Class A\"},{\"value\":\"Class B\",\"displayValue\":\"Class B\"},{\"value\":\"Class C\",\"displayValue\":\"Class C\"},{\"value\":\"Class D\",\"displayValue\":\"Class D\"},{\"value\":\"Class E\",\"displayValue\":\"Class E\"},{\"value\":\"Class F\",\"displayValue\":\"Class F\"}],\"entityType\":\"LSE\",\"entityId\":734}]}"
|
55
|
-
|
123
|
+
connection:
|
124
|
+
- keep-alive
|
125
|
+
body: ! '{"status":"success","count":44,"type":"PropertyKey","results":[{"keyName":"734formula1","displayName":"CRL
|
126
|
+
Determined Tiers","family":"tariff","keyspace":"electricity","description":"Tier
|
127
|
+
limits determined by the Capacity Reservation Level elected by the customer. The
|
128
|
+
default value for Capacity Reservation Level is 50% of peak annual demand.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula10","displayName":"Capacity
|
129
|
+
Reservation Deficit","family":"tariff","keyspace":"electricity","description":"Participants
|
130
|
+
must pay the generation portion of the demand charge if the measured peak demand
|
131
|
+
in a given summer bill period is less than the capacity they reserved","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel - #demand","entityType":"LSE","entityId":734},{"keyName":"734formula11","displayName":"Capacity
|
132
|
+
Reservation Deficit","family":"tariff","keyspace":"electricity","description":"Participants
|
133
|
+
must pay the generation portion of the demand charge if the measured peak demand
|
134
|
+
in a given summer bill period is less than the capacity they reserved","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel - #demand","entityType":"LSE","entityId":734},{"keyName":"734formula12","displayName":"Formula
|
135
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
136
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
137
|
+
placeholder","entityType":"LSE","entityId":734},{"keyName":"734formula13","displayName":"Capacity
|
138
|
+
Reservation Deficit","family":"tariff","keyspace":"electricity","description":"Participants
|
139
|
+
must pay the generation portion of the demand charge if the measured peak demand
|
140
|
+
in a given summer bill period is less than the capacity they reserved","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel - #demand","entityType":"LSE","entityId":734},{"keyName":"734formula14","displayName":"Usage
|
141
|
+
above CRL","family":"tariff","keyspace":"electricity","description":"Credits
|
142
|
+
are applied to usage above reservation capacity on PDP event days","dataType":"FORMULA","formulaDetail":"#demand
|
143
|
+
- #capacityReservationLevel","entityType":"LSE","entityId":734},{"keyName":"734formula15","displayName":"Formula
|
144
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
145
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
146
|
+
placeholder","entityType":"LSE","entityId":734},{"keyName":"734formula16","displayName":"Formula
|
147
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
148
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula17","displayName":"Formula
|
149
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
150
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula18","displayName":"Formula
|
151
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
152
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #tariffRateBand.propertyUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula19","displayName":"Formula
|
153
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
154
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #tariffRateBand.propertyUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula2","displayName":"CRL
|
155
|
+
Determined Tiers","family":"tariff","keyspace":"electricity","description":"Tier
|
156
|
+
limits determined by the Capacity Reservation Level elected by the customer. The
|
157
|
+
default value for Capacity Reservation Level is 50% of peak annual demand.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula20","displayName":"Formula
|
158
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
159
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #tariffRateBand.propertyUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula21","displayName":"Formula
|
160
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
161
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #tariffRateBand.propertyUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula22","displayName":"Formula
|
162
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
163
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"85
|
164
|
+
- #averagePowerFactor734","entityType":"LSE","entityId":734},{"keyName":"734formula23","displayName":"Formula
|
165
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
166
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#tariffRateBand.consumptionUpperLimit * #tariffRateBand.propertyUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula3","displayName":"CRL
|
167
|
+
Determined Tiers","family":"tariff","keyspace":"electricity","description":"Tier
|
168
|
+
limits determined by the Capacity Reservation Level elected by the customer. The
|
169
|
+
default value for Capacity Reservation Level is 50% of peak annual demand.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula4","displayName":"Formula
|
170
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
171
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.demandUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula5","displayName":"CRL
|
172
|
+
Determined Tiers","family":"tariff","keyspace":"electricity","description":"Tier
|
173
|
+
limits determined by the Capacity Reservation Level elected by the customer. The
|
174
|
+
default value for Capacity Reservation Level is 50% of peak annual demand.","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel * #tariffRateBand.consumptionUpperLimit","entityType":"LSE","entityId":734},{"keyName":"734formula6","displayName":"Formula
|
175
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
176
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
177
|
+
placeholder","entityType":"LSE","entityId":734},{"keyName":"734formula7","displayName":"Formula
|
178
|
+
for LSE 734","family":"tariff","keyspace":"electricity","description":"This
|
179
|
+
is a specific formula for this LSE.","dataType":"FORMULA","formulaDetail":"formula
|
180
|
+
placeholder","entityType":"LSE","entityId":734},{"keyName":"734formula8","displayName":"Capacity
|
181
|
+
Reservation Deficit","family":"tariff","keyspace":"electricity","description":"Participants
|
182
|
+
must pay the generation portion of the demand charge if the measured peak demand
|
183
|
+
in a given summer bill period is less than the capacity they reserved","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel - #demand","entityType":"LSE","entityId":734},{"keyName":"734formula9","displayName":"Capacity
|
184
|
+
Reservation Deficit","family":"tariff","keyspace":"electricity","description":"Participants
|
185
|
+
must pay the generation portion of the demand charge if the measured peak demand
|
186
|
+
in a given summer bill period is less than the capacity they reserved","dataType":"FORMULA","formulaDetail":"#capacityReservationLevel - #demand","entityType":"LSE","entityId":734},{"keyName":"averagePowerFactor734","displayName":"Average
|
187
|
+
Power Factor","family":"load","keyspace":"electricity","description":"The customer''s
|
188
|
+
Average Power Factor is used to determine Power Factor billing adjustments. Enter
|
189
|
+
a whole percentage, with no decimal nor percent sign.","dataType":"INTEGER","entityType":"LSE","entityId":734},{"keyName":"capacityReservationLevel","displayName":"Capacity
|
190
|
+
Reservation Level","family":"load","keyspace":"electricity","description":"Customers
|
191
|
+
may elect a capacity reservation level(CRL) and pay for a fixed level of capacity,
|
192
|
+
specified in kW, during the summer period. Customers electing a CRL will be
|
193
|
+
billed on a take-or-pay basis up to the specified CRL under the non-PDP rate.
|
194
|
+
During a Peak Day Pricing(PDP) event, all usage below the CRL will be billed
|
195
|
+
under the non-PDP rate and all above at the PDP rate. If a customer fails to
|
196
|
+
elect a CRL, the CRL will be set at 50% of average peak-period maximum demand. If
|
197
|
+
there is no billing history, CRL will be set to 0.","dataType":"INTEGER","entityType":"LSE","entityId":734}]}'
|
198
|
+
http_version: '1.1'
|
data/spec/cassettes/property.yml
CHANGED
@@ -1,28 +1,40 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
5
|
uri: http://api.genability.com:80/rest/public/properties/connectionType?appId=ValidAppID&appKey=ValidAppKey
|
6
6
|
body:
|
7
|
-
headers:
|
8
|
-
accept:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
9
|
- application/json; charset=utf-8
|
10
|
-
user-agent:
|
10
|
+
user-agent:
|
11
11
|
- Genability API Ruby Gem
|
12
|
-
accept-encoding:
|
12
|
+
accept-encoding:
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
-
response: !ruby/struct:VCR::Response
|
15
|
-
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
16
|
code: 200
|
17
17
|
message: OK
|
18
|
-
headers:
|
19
|
-
|
20
|
-
-
|
21
|
-
content-type:
|
18
|
+
headers:
|
19
|
+
access-control-allow-origin:
|
20
|
+
- ! '*'
|
21
|
+
content-type:
|
22
22
|
- application/json;charset=utf-8
|
23
|
-
|
24
|
-
-
|
25
|
-
|
26
|
-
-
|
27
|
-
|
28
|
-
|
23
|
+
date:
|
24
|
+
- Sat, 05 May 2012 18:43:44 GMT
|
25
|
+
server:
|
26
|
+
- Apache/2.2.16 (Ubuntu)
|
27
|
+
content-length:
|
28
|
+
- '780'
|
29
|
+
connection:
|
30
|
+
- keep-alive
|
31
|
+
body: ! '{"status":"success","count":1,"type":"PropertyKey","results":[{"keyName":"connectionType","displayName":"Connection
|
32
|
+
Type","family":"connection","keyspace":"electricity","description":"Where or
|
33
|
+
how the service is connected to the grid (e.g. primary, transmission, subtransmission).","dataType":"CHOICE","choices":[{"value":"Secondary
|
34
|
+
Connection","displayValue":"Secondary Connection"},{"value":"Primary Connection","displayValue":"Primary
|
35
|
+
Connection"},{"value":"Subtransmission Connection","displayValue":"Subtransmission
|
36
|
+
Connection"},{"value":"Transmission Connection","displayValue":"Transmission
|
37
|
+
Connection"},{"value":"High Voltage","displayValue":"High Voltage"},{"value":"Backbone
|
38
|
+
Transmission (115 kV and Above)","displayValue":"Backbone Transmission (115
|
39
|
+
kV and Above)"}]}]}'
|
40
|
+
http_version: '1.1'
|