dhis2 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 367a235ae4138cbe459be2b16a1c5766a74795b7
4
- data.tar.gz: ead76712bed0f67df5c4896820defe3f94f5e5da
3
+ metadata.gz: 7f7ff4c087f33854b186ae23097b182f57aa7199
4
+ data.tar.gz: c474400d0e67ad09cba805e882e0633e5e8bbef7
5
5
  SHA512:
6
- metadata.gz: 9466e838c544703902d2e2ed95de69618a1c648e88deb899dcacc22abb4f20cc094b0404fc16f9044bad58522e1db7826d896d8287e565496012ba752a15931e
7
- data.tar.gz: 69cb9a93ccf9a28b7f99919ce93d183d6a98875f2643374e487a4be0e3de75a24fed52832a3fe6e37912715c0d2910424e60b78e4961a78d9630617961c2f1b2
6
+ metadata.gz: f3aee591bbae3414fed0772a8245116609fe46fa7525cbfccdf0489f09803dfd33ad0eec60d41f5d0b63d4e6426c3d29c91655b2c4fb9e4182d3f1ebedd79c0a
7
+ data.tar.gz: c2146c83b8727c9538bf7ff626af23c66cd1b58d17c1e9ed37be96ad553467041a6028cef5b04eb13f00a3322ff4126e68e6e4b2a3d4dee80eb6c25ab44f2d6c
data/README.md CHANGED
@@ -121,12 +121,19 @@ You can retreive data values this way:
121
121
  The API is currently limited to **read** actions on the following elements/classes:
122
122
 
123
123
  * `OrganisationUnit`
124
+ * `OrganisationUnitGroup`
124
125
  * `OrganisationUnitLevels`
125
126
  * `DataElement`
126
127
  * `DataSet`
128
+ * `DataValueSet`
129
+ * `DataValue`
130
+ * `Analytic`
127
131
  * `CategoryCombo`
128
132
  * `SystemInfos`
129
133
  * `Attribute`
134
+ * `Indicator`
135
+ * `DataElementGroup`
136
+
130
137
 
131
138
  A very basic **write** use case exists for `DataElement` and `DataSet`:
132
139
 
@@ -2,13 +2,15 @@ module Dhis2
2
2
  module Api
3
3
  class Analytic < Base
4
4
  class << self
5
- def list(client, periods:, organisation_units:, data_elements:)
6
- params = RestClient::ParamsArray.new([
5
+ def list(client, periods:, organisation_units:, data_elements:, filter: nil)
6
+ params = [
7
7
  [:dimension, "ou:#{organisation_units}"],
8
8
  [:dimension, "dx:#{data_elements}"],
9
9
  [:dimension, "pe:#{periods}"]
10
- ])
11
- client.get(self.resource_name, params)
10
+ ]
11
+ params << [:filter, "#{filter}"] if filter
12
+
13
+ client.get(self.resource_name, RestClient::ParamsArray.new(params))
12
14
  end
13
15
  end
14
16
  end
data/lib/dhis2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dhis2
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dhis2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Van Aken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client