Class: SensoryTest

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

Class Method Details

.is_live_result_token_valid(id, token) ⇒ Object

.most_recent_for_user(user_id) ⇒ Object

Instance Method Details

#days_until_startObject

#either_company?(user) ⇒ Boolean

Returns:

  • (Boolean)

#generate_question_profilesObject

#has_future_eventsObject

#hosting_company?(user) ⇒ Boolean

Returns:

  • (Boolean)

#is_block_readyObject

#is_event_readyObject

#is_importedObject

#is_launchableObject

#is_launched?Boolean Also known as: is_launched

Returns:

  • (Boolean)

#is_serving_readyObject

#is_survey_readyObject

#is_unlaunchableObject

#localesObject

#maximum_serving_count_per_dayObject

#offsite_company?(user) ⇒ Boolean

Returns:

  • (Boolean)

#project_company?(user) ⇒ Boolean

Returns:

  • (Boolean)

#samplesObject

#status_codeObject

#titleObject

#update_event_localesObject

#use_design_blockObject