lib/green-button-data/parser/content.rb in green-button-data-1.0.3 vs lib/green-button-data/parser/content.rb in green-button-data-2.0.0
- old
+ new
@@ -19,10 +19,22 @@
element :UsageSummary, class: UsageSummary, as: :usage_summary
element :ServiceLocation, class: ServiceLocation,
as: :service_location
element :CustomerAgreement, class: CustomerAgreement,
as: :customer_agreement
+ element :Customer,
+ class: Customer,
+ as: :customer
+ element :CustomerAccount,
+ class: CustomerAccount,
+ as: :customer_account
+ element :Meter,
+ class: Meter,
+ as: :meter
+ element :MeterReading,
+ class: Meter,
+ as: :meter_reading
# ESPI Namespacing
element :'espi:ApplicationInformation', class: ApplicationInformation,
as: :application_information
element :'espi:Authorization', class: Authorization, as: :authorization
@@ -39,10 +51,13 @@
element :'espi:UsageSummary', class: UsageSummary, as: :usage_summary
element :'espi:ServiceLocation', class: ServiceLocation,
as: :service_location
element :'espi:CustomerAgreement', class: CustomerAgreement,
as: :customer_agreement
+ element :'espi:MeterReading',
+ class: Meter,
+ as: :meter_reading
# Special case for PG&E generic namespaces
element :'ns0:ApplicationInformation', class: ApplicationInformation,
as: :application_information
element :'ns0:Authorization', class: Authorization, as: :authorization
@@ -56,10 +71,20 @@
as: :service_location
element :'ns0:CustomerAgreement', class: CustomerAgreement,
as: :customer_agreement
# Special case for SCE namespacing
- element :'cust:CustomerAgreement', class: CustomerAgreement,
- as: :customer_agreement
+ element :'cust:CustomerAgreement',
+ class: CustomerAgreement,
+ as: :customer_agreement
+ element :'cust:CustomerAccount',
+ class: CustomerAccount,
+ as: :customer_account
+ element :'cust:ServiceLocation',
+ class: ServiceLocation,
+ as: :service_location
+ element :'cust:Meter',
+ class: Meter,
+ as: :meter
end
end
end