genability 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/Gemfile +13 -12
  2. data/README.md +40 -6
  3. data/VERSION +1 -1
  4. data/genability.gemspec +12 -12
  5. data/lib/faraday/request/url_encoding_fix.rb +1 -1
  6. data/lib/genability.rb +5 -3
  7. data/lib/genability/api.rb +0 -3
  8. data/lib/genability/client.rb +4 -0
  9. data/lib/genability/client/calculate.rb +44 -16
  10. data/lib/genability/client/echo.rb +4 -4
  11. data/lib/genability/client/helpers.rb +49 -4
  12. data/lib/genability/client/load_serving_entity.rb +46 -16
  13. data/lib/genability/client/price.rb +1 -1
  14. data/lib/genability/client/property.rb +30 -2
  15. data/lib/genability/client/season.rb +39 -2
  16. data/lib/genability/client/tariff.rb +63 -12
  17. data/lib/genability/client/territory.rb +53 -8
  18. data/lib/genability/client/time_of_use.rb +53 -9
  19. data/lib/genability/connection.rb +2 -0
  20. data/lib/genability/error.rb +1 -1
  21. data/lib/genability/request.rb +7 -2
  22. data/lib/mashie_extensions.rb +9 -1
  23. data/spec/cassettes/calculate.yml +65 -38
  24. data/spec/cassettes/echo.yml +77 -37
  25. data/spec/cassettes/load_serving_entities.yml +294 -106
  26. data/spec/cassettes/load_serving_entity.yml +23 -18
  27. data/spec/cassettes/prices.yml +91 -35
  28. data/spec/cassettes/properties.yml +178 -35
  29. data/spec/cassettes/property.yml +31 -19
  30. data/spec/cassettes/seasons.yml +24 -18
  31. data/spec/cassettes/tariff.yml +82 -18
  32. data/spec/cassettes/tariffs.yml +259 -69
  33. data/spec/cassettes/territories.yml +67 -35
  34. data/spec/cassettes/territory.yml +24 -18
  35. data/spec/cassettes/time_of_use.yml +47 -18
  36. data/spec/cassettes/time_of_uses.yml +24 -18
  37. data/spec/cassettes/zipcode.yml +25 -18
  38. data/spec/client/calculate_spec.rb +6 -6
  39. data/spec/client/echo_spec.rb +6 -6
  40. data/spec/client/load_serving_entity_spec.rb +15 -7
  41. data/spec/client/tariff_spec.rb +10 -2
  42. data/spec/spec_helper.rb +6 -0
  43. metadata +170 -110
@@ -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
- server:
20
- - Apache-Coyote/1.1
21
- content-type:
18
+ headers:
19
+ access-control-allow-origin:
20
+ - ! '*'
21
+ content-type:
22
22
  - application/json;charset=utf-8
23
- transfer-encoding:
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
- date:
26
- - Wed, 26 Oct 2011 07:11:39 GMT
27
- body: "{\"status\":\"success\",\"count\":0,\"type\":null,\"results\":null}"
28
- http_version: "1.1"
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
- server:
47
- - Apache-Coyote/1.1
48
- x-error-detail:
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
- transfer-encoding:
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
- date:
55
- - Wed, 26 Oct 2011 07:11:39 GMT
56
- body: "{\"status\":\"error\",\"count\":0,\"type\":\"Error\",\"results\":null}"
57
- http_version: "1.1"
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
- server:
20
- - Apache-Coyote/1.1
21
- content-type:
18
+ headers:
19
+ access-control-allow-origin:
20
+ - ! '*'
21
+ content-type:
22
22
  - application/json;charset=utf-8
23
- transfer-encoding:
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
- date:
26
- - Wed, 26 Oct 2011 06:44:53 GMT
27
- body: "{\"status\":\"success\",\"count\":3169,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":2,\"name\":\"Kansas City Power & Light Co\",\"code\":\"10000\",\"websiteHome\":\"http://www.kcpl.com/index.html\"},{\"lseId\":3,\"name\":\"Kansas Gas & Electric Co\",\"code\":\"10005\",\"websiteHome\":null},{\"lseId\":4,\"name\":\"Karnes Electric Coop Inc\",\"code\":\"10009\",\"websiteHome\":null},{\"lseId\":5,\"name\":\"Kay Electric Coop\",\"code\":\"10012\",\"websiteHome\":null},{\"lseId\":6,\"name\":\"Kaw Valley Electric Coop Inc\",\"code\":\"10019\",\"websiteHome\":null},{\"lseId\":7,\"name\":\"City of Aurelia\",\"code\":\"1002\",\"websiteHome\":null},{\"lseId\":8,\"name\":\"City of Kaplan\",\"code\":\"10025\",\"websiteHome\":null},{\"lseId\":9,\"name\":\"City of Kasota\",\"code\":\"10037\",\"websiteHome\":null},{\"lseId\":10,\"name\":\"City of Aurora\",\"code\":\"1004\",\"websiteHome\":null},{\"lseId\":11,\"name\":\"City of Kasson\",\"code\":\"10040\",\"websiteHome\":null},{\"lseId\":12,\"name\":\"City of Kaukauna\",\"code\":\"10056\",\"websiteHome\":null},{\"lseId\":13,\"name\":\"City of Lamar\",\"code\":\"10057\",\"websiteHome\":null},{\"lseId\":14,\"name\":\"Kaysville City Corporation\",\"code\":\"10063\",\"websiteHome\":null},{\"lseId\":15,\"name\":\"KBR Rural Public Power District\",\"code\":\"10065\",\"websiteHome\":null},{\"lseId\":16,\"name\":\"K C Electric Association\",\"code\":\"10066\",\"websiteHome\":null},{\"lseId\":17,\"name\":\"Kauai Island Utility Cooperative\",\"code\":\"10071\",\"websiteHome\":null},{\"lseId\":18,\"name\":\"Kansas State University\",\"code\":\"10081\",\"websiteHome\":null},{\"lseId\":19,\"name\":\"Keewatin Public Utilities\",\"code\":\"10089\",\"websiteHome\":null},{\"lseId\":20,\"name\":\"Austin City of\",\"code\":\"1009\",\"websiteHome\":null},{\"lseId\":21,\"name\":\"Kennebunk Light & Power Dist\",\"code\":\"10144\",\"websiteHome\":null},{\"lseId\":22,\"name\":\"Austin Energy\",\"code\":\"1015\",\"websiteHome\":null},{\"lseId\":23,\"name\":\"City of Kennett\",\"code\":\"10152\",\"websiteHome\":null},{\"lseId\":24,\"name\":\"KEM Electric Coop Inc\",\"code\":\"10153\",\"websiteHome\":null},{\"lseId\":25,\"name\":\"Kiamichi Electric Coop, Inc\",\"code\":\"10170\",\"websiteHome\":null},{\"lseId\":26,\"name\":\"Kentucky Utilities Co\",\"code\":\"10171\",\"websiteHome\":\"http://www.lge-ku.com/\"}]}"
28
- http_version: "1.1"
29
- - !ruby/struct:VCR::HTTPInteraction
30
- request: !ruby/struct:VCR::Request
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
- server:
47
- - Apache-Coyote/1.1
48
- content-type:
72
+ headers:
73
+ access-control-allow-origin:
74
+ - ! '*'
75
+ content-type:
49
76
  - application/json;charset=utf-8
50
- transfer-encoding:
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
- date:
53
- - Wed, 26 Oct 2011 06:44:53 GMT
54
- body: "{\"status\":\"success\",\"count\":3169,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":2,\"name\":\"Kansas City Power & Light Co\",\"code\":\"10000\",\"websiteHome\":\"http://www.kcpl.com/index.html\"},{\"lseId\":3,\"name\":\"Kansas Gas & Electric Co\",\"code\":\"10005\",\"websiteHome\":null},{\"lseId\":4,\"name\":\"Karnes Electric Coop Inc\",\"code\":\"10009\",\"websiteHome\":null},{\"lseId\":5,\"name\":\"Kay Electric Coop\",\"code\":\"10012\",\"websiteHome\":null},{\"lseId\":6,\"name\":\"Kaw Valley Electric Coop Inc\",\"code\":\"10019\",\"websiteHome\":null},{\"lseId\":7,\"name\":\"City of Aurelia\",\"code\":\"1002\",\"websiteHome\":null},{\"lseId\":8,\"name\":\"City of Kaplan\",\"code\":\"10025\",\"websiteHome\":null},{\"lseId\":9,\"name\":\"City of Kasota\",\"code\":\"10037\",\"websiteHome\":null},{\"lseId\":10,\"name\":\"City of Aurora\",\"code\":\"1004\",\"websiteHome\":null},{\"lseId\":11,\"name\":\"City of Kasson\",\"code\":\"10040\",\"websiteHome\":null}]}"
55
- http_version: "1.1"
56
- - !ruby/struct:VCR::HTTPInteraction
57
- request: !ruby/struct:VCR::Request
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
- server:
74
- - Apache-Coyote/1.1
75
- content-type:
111
+ headers:
112
+ access-control-allow-origin:
113
+ - ! '*'
114
+ content-type:
76
115
  - application/json;charset=utf-8
77
- transfer-encoding:
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
- date:
80
- - Wed, 26 Oct 2011 06:44:53 GMT
81
- body: "{\"status\":\"success\",\"count\":3169,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":4,\"name\":\"Karnes Electric Coop Inc\",\"code\":\"10009\",\"websiteHome\":null},{\"lseId\":5,\"name\":\"Kay Electric Coop\",\"code\":\"10012\",\"websiteHome\":null},{\"lseId\":6,\"name\":\"Kaw Valley Electric Coop Inc\",\"code\":\"10019\",\"websiteHome\":null},{\"lseId\":7,\"name\":\"City of Aurelia\",\"code\":\"1002\",\"websiteHome\":null},{\"lseId\":8,\"name\":\"City of Kaplan\",\"code\":\"10025\",\"websiteHome\":null},{\"lseId\":9,\"name\":\"City of Kasota\",\"code\":\"10037\",\"websiteHome\":null},{\"lseId\":10,\"name\":\"City of Aurora\",\"code\":\"1004\",\"websiteHome\":null},{\"lseId\":11,\"name\":\"City of Kasson\",\"code\":\"10040\",\"websiteHome\":null},{\"lseId\":12,\"name\":\"City of Kaukauna\",\"code\":\"10056\",\"websiteHome\":null},{\"lseId\":13,\"name\":\"City of Lamar\",\"code\":\"10057\",\"websiteHome\":null},{\"lseId\":14,\"name\":\"Kaysville City Corporation\",\"code\":\"10063\",\"websiteHome\":null},{\"lseId\":15,\"name\":\"KBR Rural Public Power District\",\"code\":\"10065\",\"websiteHome\":null},{\"lseId\":16,\"name\":\"K C Electric Association\",\"code\":\"10066\",\"websiteHome\":null},{\"lseId\":17,\"name\":\"Kauai Island Utility Cooperative\",\"code\":\"10071\",\"websiteHome\":null},{\"lseId\":18,\"name\":\"Kansas State University\",\"code\":\"10081\",\"websiteHome\":null},{\"lseId\":19,\"name\":\"Keewatin Public Utilities\",\"code\":\"10089\",\"websiteHome\":null},{\"lseId\":20,\"name\":\"Austin City of\",\"code\":\"1009\",\"websiteHome\":null},{\"lseId\":21,\"name\":\"Kennebunk Light & Power Dist\",\"code\":\"10144\",\"websiteHome\":null},{\"lseId\":22,\"name\":\"Austin Energy\",\"code\":\"1015\",\"websiteHome\":null},{\"lseId\":23,\"name\":\"City of Kennett\",\"code\":\"10152\",\"websiteHome\":null},{\"lseId\":24,\"name\":\"KEM Electric Coop Inc\",\"code\":\"10153\",\"websiteHome\":null},{\"lseId\":25,\"name\":\"Kiamichi Electric Coop, Inc\",\"code\":\"10170\",\"websiteHome\":null},{\"lseId\":26,\"name\":\"Kentucky Utilities Co\",\"code\":\"10171\",\"websiteHome\":\"http://www.lge-ku.com/\"},{\"lseId\":27,\"name\":\"City of Marathon\",\"code\":\"10172\",\"websiteHome\":null},{\"lseId\":28,\"name\":\"Kenyon Municipal Utilities\",\"code\":\"10179\",\"websiteHome\":null}]}"
82
- http_version: "1.1"
83
- - !ruby/struct:VCR::HTTPInteraction
84
- request: !ruby/struct:VCR::Request
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&searchString=In&startsWith=true
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
- server:
101
- - Apache-Coyote/1.1
102
- content-type:
165
+ headers:
166
+ access-control-allow-origin:
167
+ - ! '*'
168
+ content-type:
103
169
  - application/json;charset=utf-8
104
- transfer-encoding:
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
- date:
107
- - Wed, 26 Oct 2011 06:44:55 GMT
108
- body: "{\"status\":\"success\",\"count\":17,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":3053,\"name\":\"Independence City of\",\"code\":\"9231\",\"websiteHome\":\"http://www.ci.independence.mo.us/\"},{\"lseId\":2356,\"name\":\"Independence Power Marketing\",\"code\":\"49921\",\"websiteHome\":null},{\"lseId\":3054,\"name\":\"Indian Electric Coop, Inc\",\"code\":\"9246\",\"websiteHome\":null},{\"lseId\":3061,\"name\":\"Indiana Michigan Power Co\",\"code\":\"9324\",\"websiteHome\":\"https://www.indianamichiganpower.com/Default.aspx\"},{\"lseId\":3056,\"name\":\"Indianapolis Power & Light Co\",\"code\":\"9273\",\"websiteHome\":\"http://www.iplpower.com/ipl/index?page=IPLHome\"},{\"lseId\":3058,\"name\":\"Indianola Municipal Utilities\",\"code\":\"9275\",\"websiteHome\":null},{\"lseId\":3155,\"name\":\"Infinite Energy Inc\",\"code\":\"\",\"websiteHome\":null},{\"lseId\":2968,\"name\":\"Inland Power & Light Company\",\"code\":\"8699\",\"websiteHome\":null},{\"lseId\":1445,\"name\":\"Inside Passage Elec Coop, Inc\",\"code\":\"18963\",\"websiteHome\":null},{\"lseId\":1793,\"name\":\"Integrys Energy Services of N.Y., Inc.\",\"code\":\"21258\",\"websiteHome\":\"http://www.integrysenergy.com/\"},{\"lseId\":2435,\"name\":\"Integrys Energy Services of Texas, LP\",\"code\":\"54892\",\"websiteHome\":null},{\"lseId\":1807,\"name\":\"Integrys Energy Services, Inc.\",\"code\":\"21795\",\"websiteHome\":\"http://www.integrysenergy.com/\"},{\"lseId\":3059,\"name\":\"Inter County Energy Coop Corp\",\"code\":\"9292\",\"websiteHome\":null},{\"lseId\":3062,\"name\":\"Intercounty Electric Coop Assn\",\"code\":\"9331\",\"websiteHome\":null},{\"lseId\":3063,\"name\":\"Intermountain Rural Elec Assn\",\"code\":\"9336\",\"websiteHome\":null},{\"lseId\":3064,\"name\":\"International Paper Co-GT Mill\",\"code\":\"9390\",\"websiteHome\":\"http://www.intermountain-rea.com/\"},{\"lseId\":3066,\"name\":\"Interstate Power and Light Co\",\"code\":\"9417\",\"websiteHome\":\"http://www.alliantenergy.com/index.htm\"}]}"
109
- http_version: "1.1"
110
- - !ruby/struct:VCR::HTTPInteraction
111
- request: !ruby/struct:VCR::Request
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&searchString=Inc
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
- server:
128
- - Apache-Coyote/1.1
129
- content-type:
218
+ headers:
219
+ access-control-allow-origin:
220
+ - ! '*'
221
+ content-type:
130
222
  - application/json;charset=utf-8
131
- transfer-encoding:
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
- date:
134
- - Wed, 26 Oct 2011 06:44:55 GMT
135
- body: "{\"status\":\"success\",\"count\":480,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":4,\"name\":\"Karnes Electric Coop Inc\",\"code\":\"10009\",\"websiteHome\":null},{\"lseId\":6,\"name\":\"Kaw Valley Electric Coop Inc\",\"code\":\"10019\",\"websiteHome\":null},{\"lseId\":24,\"name\":\"KEM Electric Coop Inc\",\"code\":\"10153\",\"websiteHome\":null},{\"lseId\":25,\"name\":\"Kiamichi Electric Coop, Inc\",\"code\":\"10170\",\"websiteHome\":null},{\"lseId\":38,\"name\":\"KeySpan Energy Services Inc\",\"code\":\"10304\",\"websiteHome\":null},{\"lseId\":43,\"name\":\"Kingsbury Electric Coop, Inc\",\"code\":\"10329\",\"websiteHome\":null},{\"lseId\":52,\"name\":\"Kiwash Electric Coop, Inc\",\"code\":\"10375\",\"websiteHome\":null},{\"lseId\":54,\"name\":\"Kit Carson Electric Coop, Inc\",\"code\":\"10378\",\"websiteHome\":null},{\"lseId\":58,\"name\":\"Kodiak Electric Assn Inc\",\"code\":\"10433\",\"websiteHome\":null},{\"lseId\":61,\"name\":\"Kotzebue Electric Assn Inc\",\"code\":\"10451\",\"websiteHome\":null},{\"lseId\":62,\"name\":\"Kootenai Electric Coop Inc\",\"code\":\"10454\",\"websiteHome\":null},{\"lseId\":74,\"name\":\"La Plata Electric Assn, Inc\",\"code\":\"10539\",\"websiteHome\":\"http://www.lpea.com/\"},{\"lseId\":77,\"name\":\"LaCreek Electric Assn, Inc\",\"code\":\"10558\",\"websiteHome\":null},{\"lseId\":89,\"name\":\"Lake Region Electric Coop, Inc\",\"code\":\"10599\",\"websiteHome\":null},{\"lseId\":90,\"name\":\"Laclede Electric Coop, Inc\",\"code\":\"10603\",\"websiteHome\":null},{\"lseId\":95,\"name\":\"Lake Placid Village, Inc\",\"code\":\"10610\",\"websiteHome\":null},{\"lseId\":99,\"name\":\"BARC Electric Coop Inc\",\"code\":\"1062\",\"websiteHome\":null},{\"lseId\":104,\"name\":\"Lamb County Electric Coop, Inc\",\"code\":\"10625\",\"websiteHome\":null},{\"lseId\":108,\"name\":\"Lake Region Electric Assn, Inc\",\"code\":\"10632\",\"websiteHome\":null},{\"lseId\":113,\"name\":\"Licking Rural Electric Inc\",\"code\":\"10668\",\"websiteHome\":null},{\"lseId\":115,\"name\":\"Lane Electric Coop Inc\",\"code\":\"10681\",\"websiteHome\":null},{\"lseId\":125,\"name\":\"Lane-Scott Electric Coop, Inc\",\"code\":\"10728\",\"websiteHome\":null},{\"lseId\":129,\"name\":\"Laurens Electric Coop, Inc\",\"code\":\"10768\",\"websiteHome\":\"http://www.laurenselectric.com/\"},{\"lseId\":140,\"name\":\"Leavenworth-Jefferson E C, Inc\",\"code\":\"10801\",\"websiteHome\":null},{\"lseId\":142,\"name\":\"Lea County Electric Coop, Inc\",\"code\":\"10817\",\"websiteHome\":null}]}"
136
- http_version: "1.1"
137
- - !ruby/struct:VCR::HTTPInteraction
138
- request: !ruby/struct:VCR::Request
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&searchString=Energy
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
- server:
155
- - Apache-Coyote/1.1
156
- content-type:
329
+ headers:
330
+ access-control-allow-origin:
331
+ - ! '*'
332
+ content-type:
157
333
  - application/json;charset=utf-8
158
- transfer-encoding:
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
- date:
161
- - Wed, 26 Oct 2011 06:44:55 GMT
162
- body: "{\"status\":\"success\",\"count\":162,\"type\":\"LoadServingEntity\",\"results\":[{\"lseId\":22,\"name\":\"Austin Energy\",\"code\":\"1015\",\"websiteHome\":null},{\"lseId\":38,\"name\":\"KeySpan Energy Services Inc\",\"code\":\"10304\",\"websiteHome\":null},{\"lseId\":103,\"name\":\"Southern Rivers Energy\",\"code\":\"10624\",\"websiteHome\":null},{\"lseId\":222,\"name\":\"Lower Valley Energy Inc\",\"code\":\"11273\",\"websiteHome\":null},{\"lseId\":228,\"name\":\"Agway Energy Services, LLC\",\"code\":\"113\",\"websiteHome\":null},{\"lseId\":304,\"name\":\"Consumers Energy\",\"code\":\"11788\",\"websiteHome\":null},{\"lseId\":362,\"name\":\"MidAmerican Energy Co\",\"code\":\"12341\",\"websiteHome\":\"http://www.midamericanenergy.com/\"},{\"lseId\":364,\"name\":\"Midwest Energy Cooperative\",\"code\":\"12377\",\"websiteHome\":null},{\"lseId\":389,\"name\":\"Midwest Energy Inc\",\"code\":\"12524\",\"websiteHome\":\"http://www.mwenergy.com\"},{\"lseId\":406,\"name\":\"Xcel Energy\",\"code\":\"12647\",\"websiteHome\":null},{\"lseId\":498,\"name\":\"CPL Retail Energy, LP\",\"code\":\"13151\",\"websiteHome\":null},{\"lseId\":499,\"name\":\"WTU Energy, LP\",\"code\":\"13153\",\"websiteHome\":null},{\"lseId\":506,\"name\":\"Xcel Energy\",\"code\":\"13211\",\"websiteHome\":null},{\"lseId\":524,\"name\":\"Constellation NewEnergy, Inc\",\"code\":\"13374\",\"websiteHome\":null},{\"lseId\":634,\"name\":\"NorthWestern Energy\",\"code\":\"13809\",\"websiteHome\":\"http://www.northwesternenergy.com/default.aspx\"},{\"lseId\":689,\"name\":\"OLS Energy-Camarillo\",\"code\":\"14149\",\"websiteHome\":null},{\"lseId\":722,\"name\":\"OLS Energy-Chino\",\"code\":\"14265\",\"websiteHome\":null},{\"lseId\":745,\"name\":\"PEPCO Energy Services\",\"code\":\"14405\",\"websiteHome\":\"http://www.pepco.com/\"},{\"lseId\":800,\"name\":\"Pennsylvania Power Co - FirstEnergy\",\"code\":\"14716\",\"websiteHome\":\"https://www.firstenergycorp.com/Penn_Power/index.html\"},{\"lseId\":819,\"name\":\"PECO Energy Co\",\"code\":\"14940\",\"websiteHome\":\"http://www.peco.com/\"},{\"lseId\":878,\"name\":\"Prairie Energy Coop\",\"code\":\"15291\",\"websiteHome\":null},{\"lseId\":892,\"name\":\"Portside Energy Corp\",\"code\":\"15343\",\"websiteHome\":null},{\"lseId\":913,\"name\":\"Xcel Energy - Colorado\",\"code\":\"15466\",\"websiteHome\":\"http://www.xcelenergy.com/\"},{\"lseId\":914,\"name\":\"Duke Energy Indiana Inc\",\"code\":\"15470\",\"websiteHome\":\"http://www.duke-energy.com/indiana.asp\"},{\"lseId\":921,\"name\":\"Puget Sound Energy Inc\",\"code\":\"15500\",\"websiteHome\":\"http://www.pse.com/Pages/default.aspx\"}]}"
163
- http_version: "1.1"
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'