Module: Dhis2::Api::Shared::OrganisationUnitGroup

Instance Method Summary collapse

Instance Method Details

#group_set_idsObject



13
14
15
16
17
# File 'lib/dhis2/api/shared/organisation_unit_group.rb', line 13

def group_set_ids
  [organisation_unit_group_set, group_sets].flatten.compact.map do |group_set|
    group_set["id"]
  end
end

#organisation_unit_idsObject



7
8
9
10
11
# File 'lib/dhis2/api/shared/organisation_unit_group.rb', line 7

def organisation_unit_ids
  organisation_units.map do |organisation_unit|
    organisation_unit["id"]
  end
end