Class: V1::DemographicCategoriesController
- Inherits:
-
ApiController
- Object
- ApiController
- V1::DemographicCategoriesController
- Includes:
- Helpers::StrongParams
- Defined in:
- api/app/api/v1/demographic_categories_controller.rb
Overview
Manage and retrieve demographic categories
Constant Summary collapse
- CREATE_PARAMS =
:name, :category_type, :exclusive, :sensory_test_id, :age_date, :source_id, demographics_attributes: %i[name demographic_category_id minimum maximum source_id _destroy]].freeze
- UPDATE_PARAMS =
:id, :name, :category_type, :sensory_test_id, :age_date, demographics_attributes: %i[id name demographic_category_id minimum maximum _destroy]].freeze
Instance Method Summary collapse
-
#create ⇒ Object
Create a demographic category ### Options.
-
#destroy ⇒ Object
Destroy a demographic category ### Options.
- #index ⇒ Object
- #lookup ⇒ Object
- #onboarding ⇒ Object
- #search ⇒ Object
- #subject_search ⇒ Object
-
#update ⇒ Object
Update a demographic category.
Instance Method Details
#create ⇒ Object
Create a demographic category
Options
- [Integer] sensory_test_id - scopes the demographics to a particular study (recruiting campaigns use this type of demographic category)
#destroy ⇒ Object
#index ⇒ Object
#lookup ⇒ Object
#onboarding ⇒ Object
#search ⇒ Object
#subject_search ⇒ Object
#update ⇒ Object
Update a demographic category