Sha256: a0af5de3c93fce4fe669f3797be3f6cd4b916cac66c5ea24474aef5c892501fb

Contents?: true

Size: 577 Bytes

Versions: 8

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

module Dhis2
  module Api
    module Shared
      module ReportTable
        def self.included(base)
          base.extend(ClassMethods)
        end

        private

        def instance_update_success?(_response)
          # response is empty so...
          true
        end

        module ClassMethods
          private

          def created_instance_id(_response)
            nil
          end

          def instance_creation_success?(response)
            response["status"] == "OK"
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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