Class: Dhis2::Api::Version224::Program

Inherits:
Base
  • Object
show all
Includes:
Creatable, Deletable, Findable, Listable, Updatable, SaveValidator
Defined in:
lib/dhis2/api/version224/program.rb

Constant Summary collapse

Schema =
Dry::Validation.Schema do
  required(:name).filled
  required(:program_type).value(
    included_in?: ::Dhis2::Api::Version224::Constants.program_types
  )
  required(:category_combo).schema do
    required(:id).filled
  end
end

Method Summary

Methods included from SaveValidator

included

Methods included from Deletable

#delete

Methods included from Updatable

#update, #update_attributes

Methods included from Creatable

included

Methods included from Findable

included

Methods included from Listable

included

Methods inherited from Base

#==, #initialize, resource_key, resource_name, #to_h

Constructor Details

This class inherits a constructor from Dhis2::Api::Base