Module: PortfolioManager::Services::Property::ElectricDistributionUtility::Live

Included in:
All::Live
Defined in:
lib/portfolio_manager/services/property.rb

Overview

Live Environment

Instance Method Summary collapse

Instance Method Details

#edit_property_edu(property_id, edu_code) ⇒ PortfolioManager::Xml::ResponseType

Edit Property EDU

This web service sets a specified electric distribution utility (EDU) for a given property. The property must be shared with you.



353
354
355
# File 'lib/portfolio_manager/services/property.rb', line 353

def edit_property_edu(property_id, edu_code)
  request(Net::HTTP::Put, path_for("property", property_id, "edu", edu_code), {}, {}, nil, nil, PortfolioManager::Xml::ResponseType, basic_auth: true)
end

#get_property_edu_list(property_id) ⇒ PortfolioManager::Xml::EduList, PortfolioManager::Xml::ResponseType

Get Property EDU List

This web service returns a list of electric distribution utilities (EDU) that identifies the regional power grid for a specific property. The preferred and currently assigned electric distribution utility to your property is also indicated in the list.



369
370
371
# File 'lib/portfolio_manager/services/property.rb', line 369

def get_property_edu_list(property_id)
  request(Net::HTTP::Get, path_for("property", property_id, "edu", "list"), {}, {}, nil, nil, PortfolioManager::Xml::EduList, basic_auth: true)
end