lib/dhis2/api/shared/analytic.rb in dhis2-3.0.0 vs lib/dhis2/api/shared/analytic.rb in dhis2-3.0.2

- old
+ new

@@ -2,18 +2,18 @@ module Dhis2 module Api module Shared class Analytic - def self.list(client, periods:, organisation_units:, data_elements: nil, filter: nil) + def self.list(client, periods:, organisation_units:, data_elements: nil, filter: nil, raw: false) params = [ [:dimension, "ou:#{organisation_units}"], [:dimension, "pe:#{periods}"] ] params << [:dimension, "dx:#{data_elements}"] if data_elements params << [:filter, filter.to_s] if filter - client.get(path: "analytics", query_params: RestClient::ParamsArray.new(params)) + client.get(path: "analytics", query_params: RestClient::ParamsArray.new(params), raw: raw) end end end end end