Class: SensoryTest
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- SensoryTest
- Includes:
- PgSearch
- Defined in:
- api/app/models/sensory_test.rb
Overview
A study to collect data from people to then do rad science
- [String]
name
- [Integer]
test_type
, null: false - [DateTime]
created_at
- [DateTime]
updated_at
- [Integer]
project_id
, null: false - [String]
block_id
- [Integer]
created_by_id
, null: false - [Integer]
status
, default: 0, null: false - [Boolean]
using_block_design
, default: true, null: false - [Integer]
defining_demographic_category_id
- [Boolean]
use_blinding_codes
, default: true, null: false - [DateTime]
launch_date
- [DateTime]
completed_at
- [Boolean]
allow_serving_retake
, default: false, null: false - [DateTime]
archived_at
- [Integer]
blinding_code_type
, default: 1, null: false - [String]
consumer_name
Class Method Summary collapse
Instance Method Summary collapse
- #days_until_start ⇒ Object
- #either_company?(user) ⇒ Boolean
- #generate_question_profiles ⇒ Object
- #has_future_events ⇒ Object
- #hosting_company?(user) ⇒ Boolean
- #is_block_ready ⇒ Object
- #is_event_ready ⇒ Object
- #is_imported ⇒ Object
- #is_launchable ⇒ Object
- #is_launched? ⇒ Boolean (also: #is_launched)
- #is_serving_ready ⇒ Object
- #is_survey_ready ⇒ Object
- #is_unlaunchable ⇒ Object
- #locales ⇒ Object
- #maximum_serving_count_per_day ⇒ Object
- #offsite_company?(user) ⇒ Boolean
- #project_company?(user) ⇒ Boolean
- #samples ⇒ Object
- #status_code ⇒ Object
- #title ⇒ Object
- #update_event_locales ⇒ Object
- #use_design_block ⇒ Object