Class: CancerRegistryReportingTestKit::SearchTestProperties
- Inherits:
-
Object
- Object
- CancerRegistryReportingTestKit::SearchTestProperties
- Defined in:
- lib/cancer_registry_reporting_test_kit/search_test_properties.rb
Constant Summary collapse
- ATTRIBUTES =
%i[ resource_type search_param_names first_search fixed_value_search saves_delayed_references possible_status_search test_medication_inclusion token_search_params test_reference_variants params_with_comparators multiple_or_search_params test_post_search ].freeze
Instance Method Summary collapse
- #first_search? ⇒ Boolean
- #fixed_value_search? ⇒ Boolean
-
#initialize(**properties) ⇒ SearchTestProperties
constructor
A new instance of SearchTestProperties.
- #possible_status_search? ⇒ Boolean
- #saves_delayed_references? ⇒ Boolean
- #test_medication_inclusion? ⇒ Boolean
- #test_post_search? ⇒ Boolean
- #test_reference_variants? ⇒ Boolean
Constructor Details
#initialize(**properties) ⇒ SearchTestProperties
Returns a new instance of SearchTestProperties.
22 23 24 25 26 27 28 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 22 def initialize(**properties) properties.each do |key, value| raise StandardError, "Unkown search test property: #{key}" unless ATTRIBUTES.include?(key) instance_variable_set(:"@#{key}", value) end end |
Instance Method Details
#first_search? ⇒ Boolean
30 31 32 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 30 def first_search? !!first_search end |
#fixed_value_search? ⇒ Boolean
34 35 36 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 34 def fixed_value_search? !!fixed_value_search end |
#possible_status_search? ⇒ Boolean
42 43 44 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 42 def possible_status_search? !!possible_status_search end |
#saves_delayed_references? ⇒ Boolean
38 39 40 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 38 def saves_delayed_references? !!saves_delayed_references end |
#test_medication_inclusion? ⇒ Boolean
46 47 48 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 46 def test_medication_inclusion? !!test_medication_inclusion end |
#test_post_search? ⇒ Boolean
54 55 56 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 54 def test_post_search? !!test_post_search end |
#test_reference_variants? ⇒ Boolean
50 51 52 |
# File 'lib/cancer_registry_reporting_test_kit/search_test_properties.rb', line 50 def test_reference_variants? !!test_reference_variants end |