Class: DaVinciUSDrugFormularyTestKit::SearchTestProperties
- Inherits:
-
Object
- Object
- DaVinciUSDrugFormularyTestKit::SearchTestProperties
- Defined in:
- lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb
Constant Summary collapse
- ATTRIBUTES =
[ :resource_type, :search_param_names, :include_param, :include_search_look_up_param, :input_ids, :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.
23 24 25 26 27 28 29 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 23 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
31 32 33 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 31 def first_search? !!first_search end |
#fixed_value_search? ⇒ Boolean
35 36 37 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 35 def fixed_value_search? !!fixed_value_search end |
#possible_status_search? ⇒ Boolean
43 44 45 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 43 def possible_status_search? !!possible_status_search end |
#saves_delayed_references? ⇒ Boolean
39 40 41 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 39 def saves_delayed_references? !!saves_delayed_references end |
#test_medication_inclusion? ⇒ Boolean
47 48 49 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 47 def test_medication_inclusion? !!test_medication_inclusion end |
#test_post_search? ⇒ Boolean
55 56 57 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 55 def test_post_search? !!test_post_search end |
#test_reference_variants? ⇒ Boolean
51 52 53 |
# File 'lib/davinci_us_drug_formulary_test_kit/search_test_properties.rb', line 51 def test_reference_variants? !!test_reference_variants end |