Module: PortfolioManager::Services::Property::PowerGenerationPlant::Live
- Included in:
- All::Live
- Defined in:
- lib/portfolio_manager/services/property.rb
Overview
Live Environment
Instance Method Summary collapse
-
#delete_property_pgp(property_id) ⇒ PortfolioManager::Xml::ResponseType
Delete Property PGP.
-
#edit_property_pgp(property_id, plant_code) ⇒ PortfolioManager::Xml::ResponseType
Edit Property PGP.
-
#get_property_pgp_list(property_id) ⇒ PortfolioManager::Xml::PgpList, PortfolioManager::Xml::ResponseType
Get Property PGP List.
Instance Method Details
#delete_property_pgp(property_id) ⇒ PortfolioManager::Xml::ResponseType
Delete Property PGP
This web service removes the currently assigned power generation plant (PGP) from the specified property. After the call is completed, the property does not have a power generation plant assigned to it. The property must be shared with you.
395 396 397 |
# File 'lib/portfolio_manager/services/property.rb', line 395 def delete_property_pgp(property_id) request(Net::HTTP::Delete, path_for("property", property_id, "pgp"), {}, {}, nil, nil, PortfolioManager::Xml::ResponseType, basic_auth: true) end |
#edit_property_pgp(property_id, plant_code) ⇒ PortfolioManager::Xml::ResponseType
Edit Property PGP
This web service sets a specified power generation plant (PGP) for a given property. The property must be shared with you.
410 411 412 |
# File 'lib/portfolio_manager/services/property.rb', line 410 def edit_property_pgp(property_id, plant_code) request(Net::HTTP::Put, path_for("property", property_id, "pgp", plant_code), {}, {}, nil, nil, PortfolioManager::Xml::ResponseType, basic_auth: true) end |
#get_property_pgp_list(property_id) ⇒ PortfolioManager::Xml::PgpList, PortfolioManager::Xml::ResponseType
Get Property PGP List
This web service returns a list of power generation plants (PGP) that are within the vicinity of a specific property. The property must be shared with you.
425 426 427 |
# File 'lib/portfolio_manager/services/property.rb', line 425 def get_property_pgp_list(property_id) request(Net::HTTP::Get, path_for("property", property_id, "pgp", "list"), {}, {}, nil, nil, PortfolioManager::Xml::PgpList, basic_auth: true) end |