Class: DaVinciPlanNetTestKit::SearchTestProperties

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

Constant Summary collapse

ATTRIBUTES =
[
  :resource_type,
  :search_param_names,
  :revinclude_param,
  :rev_param_sp,
  :include_param,
  :inc_param_sp,
  :chain_param,
  :chain_param_base,
  :additional_resource_type,
  :reverse_chain_param,
  :reverse_chain_target,
  :input_name,
  :first_search,
  :fixed_value_search,
  :saves_delayed_references,
  :possible_status_search,
  :token_search_params,
  :test_reference_variants,
  :params_with_comparators,
  :multiple_or_search_params,
  :test_post_search,
  :combination_search
].freeze

Instance Method Summary collapse

Constructor Details

#initialize(**properties) ⇒ SearchTestProperties

Returns a new instance of SearchTestProperties.



30
31
32
33
34
35
36
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 30

def initialize(**properties)
  properties.each do |key, value|
    raise StandardError, "Unknown search test property: #{key}" unless ATTRIBUTES.include?(key)

    instance_variable_set(:"@#{key}", value)
  end
end

Instance Method Details

#combination_search?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 58

def combination_search?
  !!combination_search
end

#first_search?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 38

def first_search?
  !!first_search
end

#fixed_value_search?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 42

def fixed_value_search?
  !!fixed_value_search
end

#possible_status_search?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 50

def possible_status_search?
  !!possible_status_search
end

#saves_delayed_references?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 46

def saves_delayed_references?
  !!saves_delayed_references
end

#test_post_search?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 62

def test_post_search?
  !!test_post_search
end

#test_reference_variants?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/davinci_plan_net_test_kit/search_test_properties.rb', line 54

def test_reference_variants?
  !!test_reference_variants
end