Class: Ensuppar::Services::EnergySuplyService::Client
- Inherits:
-
Object
- Object
- Ensuppar::Services::EnergySuplyService::Client
- Defined in:
- lib/ensuppar/services/energy_suply_service/client.rb
Class Method Summary collapse
Class Method Details
.city_filter_report(city_id:, rem_id:) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/ensuppar/services/energy_suply_service/client.rb', line 5 def self.city_filter_report(city_id:, rem_id:) path = "GAVTurnOff/CityFilterPReport" = "cityList=#{city_id}&remList=#{rem_id}&dBegin=&dEnd=&allRem=false" response = HTTParty.get("https://#{Ensuppar.configuration.host}/#{path}?#{}") Ensuppar::Services::EnergySuplyService::Parser.new(body: response.body).entities end |