Class: V1::DemographicCategoriesController

Inherits:
ApiController
  • Object
show all
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

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)

See Also:

#destroy ⇒ Object

Destroy a demographic category

Options

  • [Integer] id (required)

#index ⇒ Object

#lookup ⇒ Object

#onboarding ⇒ Object

#search ⇒ Object

#subject_search ⇒ Object

#update ⇒ Object

See Also: