Sha256: 64b1bb15fa603c4b043bea1690d684ad90999bd6212e03aca977d2e3ba7c1928

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

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

        def default
          self.class.default(client)
        end

        module ClassMethods
          def default(client)
            find_by(client, name: "default")
          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/category_option_combo.rb
dhis2-3.2.1 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.7 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.5 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.4 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.3 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.2 lib/dhis2/api/shared/category_option_combo.rb
dhis2-3.0.0 lib/dhis2/api/shared/category_option_combo.rb