portfoliomanager-rb 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/portfolio_manager/client.rb +2 -2
- data/lib/portfolio_manager/mapping_registry.rb +1698 -481
- data/lib/portfolio_manager/services/all.rb +3 -1
- data/lib/portfolio_manager/services/home_energy_yardstick.rb +69 -0
- data/lib/portfolio_manager/services/property.rb +23 -0
- data/lib/portfolio_manager/services/property_use.rb +124 -2
- data/lib/portfolio_manager/services/reporting.rb +603 -0
- data/lib/portfolio_manager/services.rb +10 -9
- data/lib/portfolio_manager/version.rb +1 -1
- data/lib/portfolio_manager/xml.rb +1698 -116
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b42a5257f69bce34a27d3567a956851f14abcc8b1293c0110798f1f446d32e
|
4
|
+
data.tar.gz: 2a9ce645f053a7c89f6da36132735486e3260bb6327bc9718ca4ab96bd8f4452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb6bd1a519f32680ea311dc71fb5e9cf18ad53fb65564eb9261971c95067a561e0a6abce6d3bf50dc9d2ed6e10e877842c165a1a6d62301642abeed2c9886e28
|
7
|
+
data.tar.gz: 149c26cd94290fe054a3505de2c8c69439f1bbbd980eb9811445f026837c504df682d387cd6ac790e27f8a7eb8c1f0f03bfe34d3528708af0e83296529bc245b
|
data/CHANGELOG.md
CHANGED
@@ -11,5 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
11
11
|
### Added
|
12
12
|
- Initial commit.
|
13
13
|
|
14
|
+
## [0.0.2] - 2023-11-17
|
15
|
+
### Changed
|
16
|
+
- Update from v18 to v21.
|
17
|
+
|
18
|
+
## [0.0.3] - 2024-05-13
|
19
|
+
- Update from v21 to v22.
|
20
|
+
|
14
21
|
[Unreleased]: https://github.com/pnnl/portfoliomanager-rb/compare/v0.0.1...HEAD
|
15
22
|
[0.0.1]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.1
|
23
|
+
[0.0.2]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.2
|
24
|
+
[0.0.3]: https://github.com/pnnl/portfoliomanager-rb/releases/tag/v0.0.3
|
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
`portfoliomanager-rb` provides clients for [ENERGY STAR Portfolio Manager Web Services](https://portfoliomanager.energystar.gov/webservices/home) for the Ruby programming language.
|
4
4
|
|
5
5
|
A short rundown of some of the major features:
|
6
|
-
* 100% API coverage (version
|
6
|
+
* 100% API coverage (version 22.0).
|
7
7
|
```ruby
|
8
8
|
test_client = PortfolioManager::Client::Test.new("SampleJohnDoeAccount", "Sample123")
|
9
9
|
|
10
10
|
test_client.methods
|
11
|
-
# => [:
|
11
|
+
# => [:create_sample_properties, :submit_meter_level_custom_field_values, :submit_property_level_custom_field_values, :send_connection_request_from_test_environment, :send_meter_share_request_from_test_environment, :submit_customer_level_custom_field_values, :create_account, :target_finder, :get_reasons_for_no_energy_score, :get_design_metrics, :get_reasons_for_no_water_score, :get_property_metrics, :get_property_monthly_metrics, :get_property_use_metrics, :get_data_requests, :add_data_response, :get_data_response, :edit_data_response, :delete_data_response, :get_data_response_errors, :generate_response_data_preview, :get_data_response_receipt, :submit_data_response, :get_data_response_status, :delete_data_request_access, :get_all_data_responses_results, :get_preview_data_response_results, :get_data_request, :generate_report, :get_report_status, :get_report, :get_report_list, :edit_report, :get_report_results, :edit_report_template, :delete_report_template, :add_report_template, :get_report_template_list, :get_report_template, :get_available_metrics_list, :get_custom_use_detail, :get_custom_property_use, :edit_custom_use_details_correction, :get_custom_use_details_revision_history, :edit_custom_use_detail_revision, :delete_custom_use_detail, :edit_use_details, :get_what_changed_property_use_list_from_use_detail_changes_only, :edit_use_details_correction, :get_id_hierarchy_for_use_detail, :get_use_details, :get_use_details_revision_history, :add_property_use, :delete_property_use, :edit_property_use, :get_id_hierarchy_for_property_use, :get_property_use, :get_property_use_list, :get_what_changed_property_use_list, :get_energy_performance_project_list, :get_federal_agency_list, :get_property_baseline_and_target, :get_billboard_metric_list, :get_property_custom_field_values, :add_energy_performance_project, :delete_energy_performance_project, :edit_billboard_setting_at_property_level_for_account, :edit_billboard_setting_at_property_level_for_customer, :edit_energy_performance_project, :edit_property_baseline_and_target, :get_billboard_setting_at_property_level_for_account, :get_billboard_setting_at_property_level_for_customer, :get_egrid_subregion_list, :get_energy_performance_project, :add_property_verification_professional_designation_information, :delete_property_verification_information, :delete_property_verification_professional_designation_information, :delete_specific_professional_designation_license_from_property_verification_information, :delete_specific_professional_designation_type_from_property_verification_information, :get_professional_designation_types_list, :get_property_verification_information, :get_property_verification_professional_designation_information, :update_property_verification_information, :update_property_verification_professional_designation_information, :update_specific_professional_designation_license_of_property_verification_information, :add_property_verification_information, :add_property_identifier_value, :delete_property_identifier_value, :edit_property_identifier_value, :get_property_identifier_list, :get_property_identifier_value, :get_property_identifier_value_list, :get_international_weather_station_list, :edit_property_international_weather_station, :get_property_pgp_list, :delete_property_pgp, :edit_property_pgp, :edit_property_edu, :get_property_edu_list, :get_design, :edit_design, :add_property, :delete_property, :edit_property, :get_id_hierarchy_for_property, :get_property, :get_property_list, :get_what_changed_property_list, :get_meter_custom_field_values, :get_individual_meter_of_an_aggregated_meter, :get_meter_aggregation_indicator, :get_meter_aggregation_list, :update_individual_meter_of_aggregated_meter, :add_individual_meter_to_aggregated_meter, :delete_all_individual_meters_of_an_aggregate_meter, :delete_individual_meter_of_an_aggregated_meter, :delete_meter_identifier_value, :edit_meter_identifier_value, :get_all_meter_identifier_list, :get_meter_identifier_list, :get_meter_identifier_value, :get_meter_identifier_value_list, :add_meter_identifier_value, :add_meter_waste_data, :delete_waste_data, :delete_meter_waste_data, :edit_waste_data, :get_id_hierarchy_for_waste_data, :get_meter_waste_data, :get_what_changed_waste_data_meter_list, :get_what_changed_consumption_data_meter_list, :add_meter_consumption_data, :delete_consumption_data, :delete_meter_consumption_data, :edit_consumption_data, :get_id_hierarchy_for_consumption_data, :get_meter_consumption_data, :associate_meters_to_a_property_use, :disassociate_meter_from_a_property_use, :get_associated_property_use_meters, :associate_meter_to_a_property_use, :associate_meters_to_a_property, :disassociate_meter_from_a_property, :get_associated_property_meters, :associate_meter_to_a_property, :get_what_changed_meter_list, :get_what_changed_meter_list_for_a_specific_property, :add_meter, :delete_meter, :edit_meter, :get_id_hierarchy_for_meter, :get_meter, :get_meter_list, :home_energy_yardstick, :get_notifications, :get_pending_connection_requests, :get_pending_meter_share_requests, :get_pending_property_share_requests, :unshare_meter, :accept_reject_pending_connection_requests, :unshare_property, :accept_reject_pending_meter_share_requests, :accept_reject_pending_property_share_requests, :disconnect_from_customer, :delete_building, :edit_building, :get_building, :get_building_list, :get_parent_property_list, :remove_building_association, :add_building, :associate_building_to_a_property, :create_custom_field, :delete_custom_field, :edit_custom_field, :edit_data_exchange_settings, :get_custom_field, :get_custom_field_list, :get_data_exchange_settings, :edit_account, :edit_customer, :get_account, :get_customer, :get_customer_custom_field_values, :get_customer_list, :create_customer, ...]
|
12
12
|
```
|
13
13
|
* Automated mapping between XML schemas and Ruby objects.
|
14
14
|
```ruby
|
@@ -119,7 +119,7 @@ module PortfolioManager
|
|
119
119
|
request.key?(key) ? "#{key}: #{request[key]}" : nil
|
120
120
|
}.compact).collect { |s|
|
121
121
|
"\t#{s}"
|
122
|
-
}.join("\n"))
|
122
|
+
}.join("\n")) if @debug
|
123
123
|
|
124
124
|
response = http.request(request)
|
125
125
|
|
@@ -131,7 +131,7 @@ module PortfolioManager
|
|
131
131
|
"Body: #{response.body}",
|
132
132
|
]).compact.collect { |s|
|
133
133
|
"\t#{s}"
|
134
|
-
}.join("\n"))
|
134
|
+
}.join("\n")) if @debug
|
135
135
|
|
136
136
|
if response.body.start_with?("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>")
|
137
137
|
PortfolioManager::Mapper.instance.xml2obj(response.body, klass)
|