Module: PortfolioManager::REST::Reporting

Includes:
Utils
Included in:
API
Defined in:
lib/portfolio_manager/rest/reporting.rb

Instance Method Summary collapse

Instance Method Details

#property_metrics(property_id, year, month, measurement_system, metric) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/portfolio_manager/rest/reporting.rb', line 10

def property_metrics(property_id, year, month, measurement_system, metric)
  perform_get_request(
    "/property/#{property_id}/metrics",
    query: {
      year: year, month: month, measurementSystem: measurement_system
    },
    header: {
      'PM-Metrics' => metric
    }
  )
end