Class: CarinForBlueButtonTestKit::SearchTestProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/carin_for_blue_button_test_kit/search_test_properties.rb

Constant Summary collapse

ATTRIBUTES =
[
  :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,
  :include_parameters
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(**properties) ⇒ SearchTestProperties

Returns a new instance of SearchTestProperties.



21
22
23
24
25
26
27
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 21

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

Returns:

  • (Boolean)


29
30
31
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 29

def first_search?
  !!first_search
end

#fixed_value_search?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 33

def fixed_value_search?
  !!fixed_value_search
end

#possible_status_search?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 41

def possible_status_search?
  !!possible_status_search
end

#saves_delayed_references?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 37

def saves_delayed_references?
  !!saves_delayed_references
end

#test_medication_inclusion?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 45

def test_medication_inclusion?
  !!test_medication_inclusion
end

#test_post_search?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 53

def test_post_search?
  !!test_post_search
end

#test_reference_variants?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/carin_for_blue_button_test_kit/search_test_properties.rb', line 49

def test_reference_variants?
  !!test_reference_variants
end