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
data/spec/cassettes/echo.yml
CHANGED
@@ -1,57 +1,97 @@
|
|
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/echo?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
|
-
http_version:
|
29
|
-
- !ruby/struct:VCR::HTTPInteraction
|
30
|
-
request: !ruby/struct:VCR::Request
|
29
|
+
connection:
|
30
|
+
- keep-alive
|
31
|
+
body: ! '{"status":"success","count":0,"type":null,"results":null}'
|
32
|
+
http_version: '1.1'
|
33
|
+
- !ruby/struct:VCR::HTTPInteraction
|
34
|
+
request: !ruby/struct:VCR::Request
|
35
|
+
method: :get
|
36
|
+
uri: http://api.genability.com:80/rest/echo/validate?appId=ValidAppID&appKey=ValidAppKey&dateTime=2011-10-26T12:00:00.0-0400
|
37
|
+
body:
|
38
|
+
headers:
|
39
|
+
accept:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
user-agent:
|
42
|
+
- Genability API Ruby Gem
|
43
|
+
accept-encoding:
|
44
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
45
|
+
response: !ruby/struct:VCR::Response
|
46
|
+
status: !ruby/struct:VCR::ResponseStatus
|
47
|
+
code: 200
|
48
|
+
message: OK
|
49
|
+
headers:
|
50
|
+
access-control-allow-origin:
|
51
|
+
- ! '*'
|
52
|
+
content-type:
|
53
|
+
- application/json;charset=utf-8
|
54
|
+
date:
|
55
|
+
- Sat, 05 May 2012 18:43:42 GMT
|
56
|
+
server:
|
57
|
+
- Apache/2.2.16 (Ubuntu)
|
58
|
+
transfer-encoding:
|
59
|
+
- chunked
|
60
|
+
connection:
|
61
|
+
- keep-alive
|
62
|
+
body: ! '{"status":"success","count":1,"type":null,"results":[{"array":null,"integer":null,"dateTime":"2011-10-26T12:00:00-04:00"}]}'
|
63
|
+
http_version: '1.1'
|
64
|
+
- !ruby/struct:VCR::HTTPInteraction
|
65
|
+
request: !ruby/struct:VCR::Request
|
31
66
|
method: :get
|
32
67
|
uri: http://api.genability.com:80/rest/echo/errors/500?appId=ValidAppID&appKey=ValidAppKey
|
33
68
|
body:
|
34
|
-
headers:
|
35
|
-
accept:
|
69
|
+
headers:
|
70
|
+
accept:
|
36
71
|
- application/json; charset=utf-8
|
37
|
-
user-agent:
|
72
|
+
user-agent:
|
38
73
|
- Genability API Ruby Gem
|
39
|
-
accept-encoding:
|
74
|
+
accept-encoding:
|
40
75
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
-
response: !ruby/struct:VCR::Response
|
42
|
-
status: !ruby/struct:VCR::ResponseStatus
|
76
|
+
response: !ruby/struct:VCR::Response
|
77
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
78
|
code: 500
|
44
79
|
message: Internal Server Error
|
45
|
-
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
|
49
|
-
- A server error has occurred. Sorry. It has been logged and we will work to fix it.
|
50
|
-
content-type:
|
80
|
+
headers:
|
81
|
+
access-control-allow-origin:
|
82
|
+
- ! '*'
|
83
|
+
content-type:
|
51
84
|
- application/json;charset=utf-8
|
52
|
-
|
85
|
+
date:
|
86
|
+
- Sat, 05 May 2012 18:43:43 GMT
|
87
|
+
server:
|
88
|
+
- Apache/2.2.16 (Ubuntu)
|
89
|
+
x-error-detail:
|
90
|
+
- A server error has occurred. Sorry. It has been logged and we will work to
|
91
|
+
fix it.
|
92
|
+
transfer-encoding:
|
53
93
|
- chunked
|
54
|
-
|
55
|
-
-
|
56
|
-
body:
|
57
|
-
http_version:
|
94
|
+
connection:
|
95
|
+
- keep-alive
|
96
|
+
body: ! '{"status":"error","count":0,"type":"Error","results":null}'
|
97
|
+
http_version: '1.1'
|
@@ -1,163 +1,351 @@
|
|
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?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:40 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":3417,"type":"LoadServingEntity","results":[{"lseId":2,"name":"Kansas
|
32
|
+
City Power & Light Co","code":"10000","websiteHome":"http://www.kcpl.com/index.html"},{"lseId":3,"name":"Kansas
|
33
|
+
Gas & Electric Co","code":"10005","websiteHome":"http://www.westarenergy.com/"},{"lseId":4,"name":"Karnes
|
34
|
+
Electric Coop Inc","code":"10009","websiteHome":"http://karnesec.org/"},{"lseId":5,"name":"Kay
|
35
|
+
Electric Coop","code":"10012","websiteHome":"http://www.kayelectric.coop/"},{"lseId":6,"name":"Kaw
|
36
|
+
Valley Electric Coop Inc","code":"10019","websiteHome":"http://www.kve.coop/"},{"lseId":7,"name":"City
|
37
|
+
of Aurelia","code":"1002","websiteHome":"http://www.aureliaia.com/Aurelia_Municipal_Electric.htm"},{"lseId":8,"name":"City
|
38
|
+
of Kaplan","code":"10025","websiteHome":null},{"lseId":9,"name":"City of Kasota","code":"10037","websiteHome":null},{"lseId":10,"name":"City
|
39
|
+
of Aurora","code":"1004","websiteHome":null},{"lseId":11,"name":"City of Kasson","code":"10040","websiteHome":"http://www.cityofkasson.com/index.asp?Type=B_BASIC&SEC=%7B67BED898-3937-4606-8B23-3DA8E46E8538%7D"},{"lseId":12,"name":"City
|
40
|
+
of Kaukauna","code":"10056","websiteHome":"http://www.kaukaunautilities.com/"},{"lseId":13,"name":"City
|
41
|
+
of Lamar","code":"10057","websiteHome":"http://www.lamarlightandpower.com/your_utility.html"},{"lseId":14,"name":"Kaysville
|
42
|
+
City Corporation","code":"10063","websiteHome":"http://www.kaysvillecity.com/power.main.html"},{"lseId":15,"name":"KBR
|
43
|
+
Rural Public Power District","code":"10065","websiteHome":"http://www.kbrpower.com/about.asp"},{"lseId":16,"name":"K
|
44
|
+
C Electric Association","code":"10066","websiteHome":"http://kcelectric.coop/"},{"lseId":17,"name":"Kauai
|
45
|
+
Island Utility Cooperative","code":"10071","websiteHome":"http://website.kiuc.coop/"},{"lseId":18,"name":"Kansas
|
46
|
+
State University","code":"10081","websiteHome":null},{"lseId":19,"name":"Keewatin
|
47
|
+
Public Utilities","code":"10089","websiteHome":"http://www.keewatin.govoffice.com/index.asp?Type=B_BASIC&SEC={7817CAEF-F4E2-4B4F-87DB-2AE3C57A2FD4}&DE={8ECAB14E-E74D-4878-9A47-"},{"lseId":20,"name":"Austin
|
48
|
+
City of","code":"1009","websiteHome":"http://www.austinutilities.com/"},{"lseId":21,"name":"Kennebunk
|
49
|
+
Light & Power Dist","code":"10144","websiteHome":"http://www.klpd.org/"},{"lseId":22,"name":"Austin
|
50
|
+
Energy","code":"1015","websiteHome":"http://www.austinenergy.com/"},{"lseId":23,"name":"City
|
51
|
+
of Kennett","code":"10152","websiteHome":"http://www.clgw.net/"},{"lseId":24,"name":"KEM
|
52
|
+
Electric Coop Inc","code":"10153","websiteHome":"http://www.kemelectric.com/"},{"lseId":25,"name":"Kiamichi
|
53
|
+
Electric Coop, Inc","code":"10170","websiteHome":"http://www.kiamichielectric.org/"},{"lseId":26,"name":"Kentucky
|
54
|
+
Utilities Co","code":"10171","websiteHome":"http://www.lge-ku.com/"}]}'
|
55
|
+
http_version: '1.1'
|
56
|
+
- !ruby/struct:VCR::HTTPInteraction
|
57
|
+
request: !ruby/struct:VCR::Request
|
31
58
|
method: :get
|
32
59
|
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&pageCount=10
|
33
60
|
body:
|
34
|
-
headers:
|
35
|
-
accept:
|
61
|
+
headers:
|
62
|
+
accept:
|
36
63
|
- application/json; charset=utf-8
|
37
|
-
user-agent:
|
64
|
+
user-agent:
|
38
65
|
- Genability API Ruby Gem
|
39
|
-
accept-encoding:
|
66
|
+
accept-encoding:
|
40
67
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
-
response: !ruby/struct:VCR::Response
|
42
|
-
status: !ruby/struct:VCR::ResponseStatus
|
68
|
+
response: !ruby/struct:VCR::Response
|
69
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
70
|
code: 200
|
44
71
|
message: OK
|
45
|
-
headers:
|
46
|
-
|
47
|
-
-
|
48
|
-
content-type:
|
72
|
+
headers:
|
73
|
+
access-control-allow-origin:
|
74
|
+
- ! '*'
|
75
|
+
content-type:
|
49
76
|
- application/json;charset=utf-8
|
50
|
-
|
77
|
+
date:
|
78
|
+
- Sat, 05 May 2012 18:43:41 GMT
|
79
|
+
server:
|
80
|
+
- Apache/2.2.16 (Ubuntu)
|
81
|
+
transfer-encoding:
|
51
82
|
- chunked
|
52
|
-
|
53
|
-
-
|
54
|
-
body:
|
55
|
-
|
56
|
-
|
57
|
-
|
83
|
+
connection:
|
84
|
+
- keep-alive
|
85
|
+
body: ! '{"status":"success","count":3417,"type":"LoadServingEntity","results":[{"lseId":2,"name":"Kansas
|
86
|
+
City Power & Light Co","code":"10000","websiteHome":"http://www.kcpl.com/index.html"},{"lseId":3,"name":"Kansas
|
87
|
+
Gas & Electric Co","code":"10005","websiteHome":"http://www.westarenergy.com/"},{"lseId":4,"name":"Karnes
|
88
|
+
Electric Coop Inc","code":"10009","websiteHome":"http://karnesec.org/"},{"lseId":5,"name":"Kay
|
89
|
+
Electric Coop","code":"10012","websiteHome":"http://www.kayelectric.coop/"},{"lseId":6,"name":"Kaw
|
90
|
+
Valley Electric Coop Inc","code":"10019","websiteHome":"http://www.kve.coop/"},{"lseId":7,"name":"City
|
91
|
+
of Aurelia","code":"1002","websiteHome":"http://www.aureliaia.com/Aurelia_Municipal_Electric.htm"},{"lseId":8,"name":"City
|
92
|
+
of Kaplan","code":"10025","websiteHome":null},{"lseId":9,"name":"City of Kasota","code":"10037","websiteHome":null},{"lseId":10,"name":"City
|
93
|
+
of Aurora","code":"1004","websiteHome":null},{"lseId":11,"name":"City of Kasson","code":"10040","websiteHome":"http://www.cityofkasson.com/index.asp?Type=B_BASIC&SEC=%7B67BED898-3937-4606-8B23-3DA8E46E8538%7D"}]}'
|
94
|
+
http_version: '1.1'
|
95
|
+
- !ruby/struct:VCR::HTTPInteraction
|
96
|
+
request: !ruby/struct:VCR::Request
|
58
97
|
method: :get
|
59
98
|
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&pageStart=2
|
60
99
|
body:
|
61
|
-
headers:
|
62
|
-
accept:
|
100
|
+
headers:
|
101
|
+
accept:
|
63
102
|
- application/json; charset=utf-8
|
64
|
-
user-agent:
|
103
|
+
user-agent:
|
65
104
|
- Genability API Ruby Gem
|
66
|
-
accept-encoding:
|
105
|
+
accept-encoding:
|
67
106
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
-
response: !ruby/struct:VCR::Response
|
69
|
-
status: !ruby/struct:VCR::ResponseStatus
|
107
|
+
response: !ruby/struct:VCR::Response
|
108
|
+
status: !ruby/struct:VCR::ResponseStatus
|
70
109
|
code: 200
|
71
110
|
message: OK
|
72
|
-
headers:
|
73
|
-
|
74
|
-
-
|
75
|
-
content-type:
|
111
|
+
headers:
|
112
|
+
access-control-allow-origin:
|
113
|
+
- ! '*'
|
114
|
+
content-type:
|
76
115
|
- application/json;charset=utf-8
|
77
|
-
|
116
|
+
date:
|
117
|
+
- Sat, 05 May 2012 18:43:41 GMT
|
118
|
+
server:
|
119
|
+
- Apache/2.2.16 (Ubuntu)
|
120
|
+
transfer-encoding:
|
78
121
|
- chunked
|
79
|
-
|
80
|
-
-
|
81
|
-
body:
|
82
|
-
|
83
|
-
|
84
|
-
|
122
|
+
connection:
|
123
|
+
- keep-alive
|
124
|
+
body: ! '{"status":"success","count":3417,"type":"LoadServingEntity","results":[{"lseId":4,"name":"Karnes
|
125
|
+
Electric Coop Inc","code":"10009","websiteHome":"http://karnesec.org/"},{"lseId":5,"name":"Kay
|
126
|
+
Electric Coop","code":"10012","websiteHome":"http://www.kayelectric.coop/"},{"lseId":6,"name":"Kaw
|
127
|
+
Valley Electric Coop Inc","code":"10019","websiteHome":"http://www.kve.coop/"},{"lseId":7,"name":"City
|
128
|
+
of Aurelia","code":"1002","websiteHome":"http://www.aureliaia.com/Aurelia_Municipal_Electric.htm"},{"lseId":8,"name":"City
|
129
|
+
of Kaplan","code":"10025","websiteHome":null},{"lseId":9,"name":"City of Kasota","code":"10037","websiteHome":null},{"lseId":10,"name":"City
|
130
|
+
of Aurora","code":"1004","websiteHome":null},{"lseId":11,"name":"City of Kasson","code":"10040","websiteHome":"http://www.cityofkasson.com/index.asp?Type=B_BASIC&SEC=%7B67BED898-3937-4606-8B23-3DA8E46E8538%7D"},{"lseId":12,"name":"City
|
131
|
+
of Kaukauna","code":"10056","websiteHome":"http://www.kaukaunautilities.com/"},{"lseId":13,"name":"City
|
132
|
+
of Lamar","code":"10057","websiteHome":"http://www.lamarlightandpower.com/your_utility.html"},{"lseId":14,"name":"Kaysville
|
133
|
+
City Corporation","code":"10063","websiteHome":"http://www.kaysvillecity.com/power.main.html"},{"lseId":15,"name":"KBR
|
134
|
+
Rural Public Power District","code":"10065","websiteHome":"http://www.kbrpower.com/about.asp"},{"lseId":16,"name":"K
|
135
|
+
C Electric Association","code":"10066","websiteHome":"http://kcelectric.coop/"},{"lseId":17,"name":"Kauai
|
136
|
+
Island Utility Cooperative","code":"10071","websiteHome":"http://website.kiuc.coop/"},{"lseId":18,"name":"Kansas
|
137
|
+
State University","code":"10081","websiteHome":null},{"lseId":19,"name":"Keewatin
|
138
|
+
Public Utilities","code":"10089","websiteHome":"http://www.keewatin.govoffice.com/index.asp?Type=B_BASIC&SEC={7817CAEF-F4E2-4B4F-87DB-2AE3C57A2FD4}&DE={8ECAB14E-E74D-4878-9A47-"},{"lseId":20,"name":"Austin
|
139
|
+
City of","code":"1009","websiteHome":"http://www.austinutilities.com/"},{"lseId":21,"name":"Kennebunk
|
140
|
+
Light & Power Dist","code":"10144","websiteHome":"http://www.klpd.org/"},{"lseId":22,"name":"Austin
|
141
|
+
Energy","code":"1015","websiteHome":"http://www.austinenergy.com/"},{"lseId":23,"name":"City
|
142
|
+
of Kennett","code":"10152","websiteHome":"http://www.clgw.net/"},{"lseId":24,"name":"KEM
|
143
|
+
Electric Coop Inc","code":"10153","websiteHome":"http://www.kemelectric.com/"},{"lseId":25,"name":"Kiamichi
|
144
|
+
Electric Coop, Inc","code":"10170","websiteHome":"http://www.kiamichielectric.org/"},{"lseId":26,"name":"Kentucky
|
145
|
+
Utilities Co","code":"10171","websiteHome":"http://www.lge-ku.com/"},{"lseId":27,"name":"City
|
146
|
+
of Marathon","code":"10172","websiteHome":null},{"lseId":28,"name":"Kenyon Municipal
|
147
|
+
Utilities","code":"10179","websiteHome":"http://www.cityofkenyon.com/utilities.cfm"}]}'
|
148
|
+
http_version: '1.1'
|
149
|
+
- !ruby/struct:VCR::HTTPInteraction
|
150
|
+
request: !ruby/struct:VCR::Request
|
85
151
|
method: :get
|
86
|
-
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&
|
152
|
+
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&search=In&startsWith=true
|
87
153
|
body:
|
88
|
-
headers:
|
89
|
-
accept:
|
154
|
+
headers:
|
155
|
+
accept:
|
90
156
|
- application/json; charset=utf-8
|
91
|
-
user-agent:
|
157
|
+
user-agent:
|
92
158
|
- Genability API Ruby Gem
|
93
|
-
accept-encoding:
|
159
|
+
accept-encoding:
|
94
160
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
95
|
-
response: !ruby/struct:VCR::Response
|
96
|
-
status: !ruby/struct:VCR::ResponseStatus
|
161
|
+
response: !ruby/struct:VCR::Response
|
162
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
163
|
code: 200
|
98
164
|
message: OK
|
99
|
-
headers:
|
100
|
-
|
101
|
-
-
|
102
|
-
content-type:
|
165
|
+
headers:
|
166
|
+
access-control-allow-origin:
|
167
|
+
- ! '*'
|
168
|
+
content-type:
|
103
169
|
- application/json;charset=utf-8
|
104
|
-
|
170
|
+
date:
|
171
|
+
- Sat, 05 May 2012 18:43:41 GMT
|
172
|
+
server:
|
173
|
+
- Apache/2.2.16 (Ubuntu)
|
174
|
+
transfer-encoding:
|
105
175
|
- chunked
|
106
|
-
|
107
|
-
-
|
108
|
-
body:
|
109
|
-
|
110
|
-
|
111
|
-
|
176
|
+
connection:
|
177
|
+
- keep-alive
|
178
|
+
body: ! '{"status":"success","count":23,"type":"LoadServingEntity","results":[{"lseId":100221,"name":"inCharge
|
179
|
+
LLC","code":"","websiteHome":null},{"lseId":3053,"name":"Independence City of","code":"9231","websiteHome":"http://www.ci.independence.mo.us/"},{"lseId":100113,"name":"Independence
|
180
|
+
Energy","code":"","websiteHome":null},{"lseId":2356,"name":"Independence Power
|
181
|
+
Marketing","code":"49921","websiteHome":null},{"lseId":3054,"name":"Indian Electric
|
182
|
+
Coop, Inc","code":"9246","websiteHome":null},{"lseId":3061,"name":"Indiana Michigan
|
183
|
+
Power Co","code":"9324","websiteHome":"https://www.indianamichiganpower.com/Default.aspx"},{"lseId":3056,"name":"Indianapolis
|
184
|
+
Power & Light Co","code":"9273","websiteHome":"http://www.iplpower.com/ipl/index?page=IPLHome"},{"lseId":3058,"name":"Indianola
|
185
|
+
Municipal Utilities","code":"9275","websiteHome":null},{"lseId":3155,"name":"Infinite
|
186
|
+
Energy Inc","code":"","websiteHome":null},{"lseId":2968,"name":"Inland Power
|
187
|
+
& Light Company","code":"8699","websiteHome":null},{"lseId":100222,"name":"Innovative
|
188
|
+
Energy Advisors LLC","code":"","websiteHome":null},{"lseId":1445,"name":"Inside
|
189
|
+
Passage Elec Coop, Inc","code":"18963","websiteHome":null},{"lseId":100114,"name":"Integrity
|
190
|
+
Energy LTD","code":"","websiteHome":null},{"lseId":1793,"name":"Integrys Energy
|
191
|
+
Services of N.Y., Inc.","code":"21258","websiteHome":"http://www.integrysenergy.com/"},{"lseId":2435,"name":"Integrys
|
192
|
+
Energy Services of Texas, LP","code":"54892","websiteHome":null},{"lseId":1807,"name":"Integrys
|
193
|
+
Energy Services, Inc.","code":"21795","websiteHome":"http://www.integrysenergy.com/"},{"lseId":100115,"name":"Intelligen
|
194
|
+
Resources LP","code":"","websiteHome":null},{"lseId":100261,"name":"Intelligent
|
195
|
+
Energy","code":"","websiteHome":null},{"lseId":3059,"name":"Inter County Energy
|
196
|
+
Coop Corp","code":"9292","websiteHome":null},{"lseId":3062,"name":"Intercounty
|
197
|
+
Electric Coop Assn","code":"9331","websiteHome":null},{"lseId":3063,"name":"Intermountain
|
198
|
+
Rural Elec Assn","code":"9336","websiteHome":null},{"lseId":3064,"name":"International
|
199
|
+
Paper Co-GT Mill","code":"9390","websiteHome":"http://www.intermountain-rea.com/"},{"lseId":3066,"name":"Interstate
|
200
|
+
Power and Light Co","code":"9417","websiteHome":"http://www.alliantenergy.com/index.htm"}]}'
|
201
|
+
http_version: '1.1'
|
202
|
+
- !ruby/struct:VCR::HTTPInteraction
|
203
|
+
request: !ruby/struct:VCR::Request
|
112
204
|
method: :get
|
113
|
-
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&endsWith=true&
|
205
|
+
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&endsWith=true&search=Inc
|
114
206
|
body:
|
115
|
-
headers:
|
116
|
-
accept:
|
207
|
+
headers:
|
208
|
+
accept:
|
117
209
|
- application/json; charset=utf-8
|
118
|
-
user-agent:
|
210
|
+
user-agent:
|
119
211
|
- Genability API Ruby Gem
|
120
|
-
accept-encoding:
|
212
|
+
accept-encoding:
|
121
213
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
122
|
-
response: !ruby/struct:VCR::Response
|
123
|
-
status: !ruby/struct:VCR::ResponseStatus
|
214
|
+
response: !ruby/struct:VCR::Response
|
215
|
+
status: !ruby/struct:VCR::ResponseStatus
|
124
216
|
code: 200
|
125
217
|
message: OK
|
126
|
-
headers:
|
127
|
-
|
128
|
-
-
|
129
|
-
content-type:
|
218
|
+
headers:
|
219
|
+
access-control-allow-origin:
|
220
|
+
- ! '*'
|
221
|
+
content-type:
|
130
222
|
- application/json;charset=utf-8
|
131
|
-
|
223
|
+
date:
|
224
|
+
- Sat, 05 May 2012 18:43:41 GMT
|
225
|
+
server:
|
226
|
+
- Apache/2.2.16 (Ubuntu)
|
227
|
+
content-length:
|
228
|
+
- '2651'
|
229
|
+
connection:
|
230
|
+
- keep-alive
|
231
|
+
body: ! '{"status":"success","count":487,"type":"LoadServingEntity","results":[{"lseId":4,"name":"Karnes
|
232
|
+
Electric Coop Inc","code":"10009","websiteHome":"http://karnesec.org/"},{"lseId":6,"name":"Kaw
|
233
|
+
Valley Electric Coop Inc","code":"10019","websiteHome":"http://www.kve.coop/"},{"lseId":24,"name":"KEM
|
234
|
+
Electric Coop Inc","code":"10153","websiteHome":"http://www.kemelectric.com/"},{"lseId":25,"name":"Kiamichi
|
235
|
+
Electric Coop, Inc","code":"10170","websiteHome":"http://www.kiamichielectric.org/"},{"lseId":38,"name":"KeySpan
|
236
|
+
Energy Services Inc","code":"10304","websiteHome":"http://ny.nationalgridservices.com/NatGridServices/NationalGridServices.html"},{"lseId":43,"name":"Kingsbury
|
237
|
+
Electric Coop, Inc","code":"10329","websiteHome":"http://www.kingsburyelectric.coop/"},{"lseId":52,"name":"Kiwash
|
238
|
+
Electric Coop, Inc","code":"10375","websiteHome":"http://www.kiwash.coop/"},{"lseId":54,"name":"Kit
|
239
|
+
Carson Electric Coop, Inc","code":"10378","websiteHome":"http://www.kitcarson.com/"},{"lseId":58,"name":"Kodiak
|
240
|
+
Electric Assn Inc","code":"10433","websiteHome":"http://www.kodiakelectric.com/"},{"lseId":61,"name":"Kotzebue
|
241
|
+
Electric Assn Inc","code":"10451","websiteHome":"http://www.kea.coop/"},{"lseId":62,"name":"Kootenai
|
242
|
+
Electric Coop Inc","code":"10454","websiteHome":"http://www.kec.com/"},{"lseId":74,"name":"La
|
243
|
+
Plata Electric Assn, Inc","code":"10539","websiteHome":"http://www.lpea.com/"},{"lseId":77,"name":"LaCreek
|
244
|
+
Electric Assn, Inc","code":"10558","websiteHome":"http://lacreek.com/"},{"lseId":89,"name":"Lake
|
245
|
+
Region Electric Coop, Inc","code":"10599","websiteHome":"http://www.lrec.coop/home.aspx"},{"lseId":90,"name":"Laclede
|
246
|
+
Electric Coop, Inc","code":"10603","websiteHome":"http://www.lacledeelectric.com/"},{"lseId":95,"name":"Lake
|
247
|
+
Placid Village, Inc","code":"10610","websiteHome":"http://www.nypa.gov/partners/placid.htm"},{"lseId":99,"name":"BARC
|
248
|
+
Electric Coop Inc","code":"1062","websiteHome":"http://www.barcelectric.com/"},{"lseId":104,"name":"Lamb
|
249
|
+
County Electric Coop, Inc","code":"10625","websiteHome":null},{"lseId":108,"name":"Lake
|
250
|
+
Region Electric Assn, Inc","code":"10632","websiteHome":null},{"lseId":113,"name":"Licking
|
251
|
+
Rural Electric Inc","code":"10668","websiteHome":null},{"lseId":115,"name":"Lane
|
252
|
+
Electric Coop Inc","code":"10681","websiteHome":null},{"lseId":125,"name":"Lane-Scott
|
253
|
+
Electric Coop, Inc","code":"10728","websiteHome":null},{"lseId":129,"name":"Laurens
|
254
|
+
Electric Coop, Inc","code":"10768","websiteHome":"http://www.laurenselectric.com/"},{"lseId":140,"name":"Leavenworth-Jefferson
|
255
|
+
E C, Inc","code":"10801","websiteHome":null},{"lseId":142,"name":"Lea County
|
256
|
+
Electric Coop, Inc","code":"10817","websiteHome":null}]}'
|
257
|
+
http_version: '1.1'
|
258
|
+
- !ruby/struct:VCR::HTTPInteraction
|
259
|
+
request: !ruby/struct:VCR::Request
|
260
|
+
method: :get
|
261
|
+
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&search=Energy
|
262
|
+
body:
|
263
|
+
headers:
|
264
|
+
accept:
|
265
|
+
- application/json; charset=utf-8
|
266
|
+
user-agent:
|
267
|
+
- Genability API Ruby Gem
|
268
|
+
accept-encoding:
|
269
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
270
|
+
response: !ruby/struct:VCR::Response
|
271
|
+
status: !ruby/struct:VCR::ResponseStatus
|
272
|
+
code: 200
|
273
|
+
message: OK
|
274
|
+
headers:
|
275
|
+
access-control-allow-origin:
|
276
|
+
- ! '*'
|
277
|
+
content-type:
|
278
|
+
- application/json;charset=utf-8
|
279
|
+
date:
|
280
|
+
- Sat, 05 May 2012 18:43:42 GMT
|
281
|
+
server:
|
282
|
+
- Apache/2.2.16 (Ubuntu)
|
283
|
+
transfer-encoding:
|
132
284
|
- chunked
|
133
|
-
|
134
|
-
-
|
135
|
-
body:
|
136
|
-
|
137
|
-
|
138
|
-
|
285
|
+
connection:
|
286
|
+
- keep-alive
|
287
|
+
body: ! '{"status":"success","count":310,"type":"LoadServingEntity","results":[{"lseId":22,"name":"Austin
|
288
|
+
Energy","code":"1015","websiteHome":"http://www.austinenergy.com/"},{"lseId":38,"name":"KeySpan
|
289
|
+
Energy Services Inc","code":"10304","websiteHome":"http://ny.nationalgridservices.com/NatGridServices/NationalGridServices.html"},{"lseId":103,"name":"Southern
|
290
|
+
Rivers Energy","code":"10624","websiteHome":null},{"lseId":222,"name":"Lower
|
291
|
+
Valley Energy Inc","code":"11273","websiteHome":null},{"lseId":228,"name":"Agway
|
292
|
+
Energy Services, LLC","code":"113","websiteHome":null},{"lseId":304,"name":"Consumers
|
293
|
+
Energy","code":"11788","websiteHome":null},{"lseId":362,"name":"MidAmerican
|
294
|
+
Energy Co","code":"12341","websiteHome":"http://www.midamericanenergy.com/"},{"lseId":364,"name":"Midwest
|
295
|
+
Energy Cooperative","code":"12377","websiteHome":null},{"lseId":389,"name":"Midwest
|
296
|
+
Energy Inc","code":"12524","websiteHome":"http://www.mwenergy.com"},{"lseId":406,"name":"Xcel
|
297
|
+
Energy - Minnesota","code":"12647","websiteHome":null},{"lseId":498,"name":"CPL
|
298
|
+
Retail Energy, LP","code":"13151","websiteHome":null},{"lseId":499,"name":"WTU
|
299
|
+
Energy, LP","code":"13153","websiteHome":null},{"lseId":506,"name":"Xcel Energy","code":"13211","websiteHome":null},{"lseId":524,"name":"Constellation
|
300
|
+
NewEnergy, Inc","code":"13374","websiteHome":null},{"lseId":634,"name":"NorthWestern
|
301
|
+
Energy","code":"13809","websiteHome":"http://www.northwesternenergy.com/default.aspx"},{"lseId":689,"name":"OLS
|
302
|
+
Energy-Camarillo","code":"14149","websiteHome":null},{"lseId":722,"name":"OLS
|
303
|
+
Energy-Chino","code":"14265","websiteHome":null},{"lseId":745,"name":"PEPCO
|
304
|
+
Energy Services","code":"14405","websiteHome":"http://www.pepco.com/"},{"lseId":800,"name":"Pennsylvania
|
305
|
+
Power Co - FirstEnergy","code":"14716","websiteHome":"https://www.firstenergycorp.com/Penn_Power/index.html"},{"lseId":819,"name":"PECO
|
306
|
+
Energy Co","code":"14940","websiteHome":"http://www.peco.com/"},{"lseId":878,"name":"Prairie
|
307
|
+
Energy Coop","code":"15291","websiteHome":null},{"lseId":892,"name":"Portside
|
308
|
+
Energy Corp","code":"15343","websiteHome":null},{"lseId":913,"name":"Xcel Energy
|
309
|
+
- Colorado","code":"15466","websiteHome":"http://www.xcelenergy.com/"},{"lseId":914,"name":"Duke
|
310
|
+
Energy Indiana Inc","code":"15470","websiteHome":"http://www.duke-energy.com/indiana.asp"},{"lseId":921,"name":"Puget
|
311
|
+
Sound Energy Inc","code":"15500","websiteHome":"http://www.pse.com/Pages/default.aspx"}]}'
|
312
|
+
http_version: '1.1'
|
313
|
+
- !ruby/struct:VCR::HTTPInteraction
|
314
|
+
request: !ruby/struct:VCR::Request
|
139
315
|
method: :get
|
140
|
-
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&
|
316
|
+
uri: http://api.genability.com:80/rest/public/lses?appId=ValidAppID&appKey=ValidAppKey&isRegex=true&search=ansa
|
141
317
|
body:
|
142
|
-
headers:
|
143
|
-
accept:
|
318
|
+
headers:
|
319
|
+
accept:
|
144
320
|
- application/json; charset=utf-8
|
145
|
-
user-agent:
|
321
|
+
user-agent:
|
146
322
|
- Genability API Ruby Gem
|
147
|
-
accept-encoding:
|
323
|
+
accept-encoding:
|
148
324
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
-
response: !ruby/struct:VCR::Response
|
150
|
-
status: !ruby/struct:VCR::ResponseStatus
|
325
|
+
response: !ruby/struct:VCR::Response
|
326
|
+
status: !ruby/struct:VCR::ResponseStatus
|
151
327
|
code: 200
|
152
328
|
message: OK
|
153
|
-
headers:
|
154
|
-
|
155
|
-
-
|
156
|
-
content-type:
|
329
|
+
headers:
|
330
|
+
access-control-allow-origin:
|
331
|
+
- ! '*'
|
332
|
+
content-type:
|
157
333
|
- application/json;charset=utf-8
|
158
|
-
|
334
|
+
date:
|
335
|
+
- Sat, 05 May 2012 18:43:42 GMT
|
336
|
+
server:
|
337
|
+
- Apache/2.2.16 (Ubuntu)
|
338
|
+
transfer-encoding:
|
159
339
|
- chunked
|
160
|
-
|
161
|
-
-
|
162
|
-
body:
|
163
|
-
|
340
|
+
connection:
|
341
|
+
- keep-alive
|
342
|
+
body: ! '{"status":"success","count":8,"type":"LoadServingEntity","results":[{"lseId":2,"name":"Kansas
|
343
|
+
City Power & Light Co","code":"10000","websiteHome":"http://www.kcpl.com/index.html"},{"lseId":3,"name":"Kansas
|
344
|
+
Gas & Electric Co","code":"10005","websiteHome":"http://www.westarenergy.com/"},{"lseId":18,"name":"Kansas
|
345
|
+
State University","code":"10081","websiteHome":null},{"lseId":596,"name":"North
|
346
|
+
Arkansas Elec Coop, Inc","code":"13676","websiteHome":null},{"lseId":1241,"name":"Southwest
|
347
|
+
Arkansas E C C","code":"17671","websiteHome":null},{"lseId":2894,"name":"Entergy
|
348
|
+
Arkansas Inc","code":"814","websiteHome":"http://www.entergy-arkansas.com/"},{"lseId":2897,"name":"Arkansas
|
349
|
+
Valley Elec Coop Corp","code":"817","websiteHome":"http://www.avecc.com/"},{"lseId":3139,"name":"Kansas
|
350
|
+
City City of","code":"9996","websiteHome":null}]}'
|
351
|
+
http_version: '1.1'
|