Sha256: 7b8e282dfd07e9cb1c6a63ca228f4945551cdea25353e20197914a5a008a32e2

Contents?: true

Size: 824 Bytes

Versions: 8

Compression:

Stored size: 824 Bytes

Contents

# frozen_string_literal: true

module Dhis2
  module Api
    module Version226
      module Constants
        include ::Dhis2::Api::Shared::Constants

        VALUE_TYPES = %w(UNIT_INTERVAL LETTER BOOLEAN NUMBER TEXT DATE LONG_TEXT FILE_RESOURCE USERNAME TRACKER_ASSOCIATE COORDINATE INTEGER_POSITIVE DATETIME EMAIL TRUE_ONLY INTEGER INTEGER_ZERO_OR_POSITIVE ORGANISATION_UNIT TIME INTEGER_NEGATIVE PERCENTAGE AGE PHONE_NUMBER).freeze
        AGGREGATION_TYPES = %w(DEFAULT MAX AVERAGE_INT_DISAGGREGATION SUM AVERAGE_BOOL AVERAGE_INT COUNT CUSTOM STDDEV AVERAGE_SUM_ORG_UNIT NONE AVERAGE_SUM_INT AVERAGE_SUM_INT_DISAGGREGATION AVERAGE VARIANCE MIN).freeze

        def self.value_types
          VALUE_TYPES
        end

        def self.aggregation_types
          AGGREGATION_TYPES
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhis2-3.3.1 lib/dhis2/api/version226/constants.rb
dhis2-3.2.1 lib/dhis2/api/version226/constants.rb
dhis2-3.0.7 lib/dhis2/api/version226/constants.rb
dhis2-3.0.5 lib/dhis2/api/version226/constants.rb
dhis2-3.0.4 lib/dhis2/api/version226/constants.rb
dhis2-3.0.3 lib/dhis2/api/version226/constants.rb
dhis2-3.0.2 lib/dhis2/api/version226/constants.rb
dhis2-3.0.0 lib/dhis2/api/version226/constants.rb