Sha256: ccb64f989384183f85beb7bab13a6aede4a35c009008ca022e08a89aa4911fc2

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

module Dhis2
  module Api
    class DataValue < Base
      class << self
        def find(client, period:, organisation_unit:, data_element:)
          params = { pe: period, ou: organisation_unit, de: data_element }

          client.get(self.resource_name, params).first
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhis2-2.3.5 lib/dhis2/api/data_value.rb
dhis2-2.3.4 lib/dhis2/api/data_value.rb
dhis2-2.3.3 lib/dhis2/api/data_value.rb
dhis2-2.3.2 lib/dhis2/api/data_value.rb
dhis2-2.3.1 lib/dhis2/api/data_value.rb
dhis2-2.2.1 lib/dhis2/api/data_value.rb
dhis2-2.2.0 lib/dhis2/api/data_value.rb
dhis2-2.1.0 lib/dhis2/api/data_value.rb