Class: Core::Filtering::PostProcessResult

Inherits:
Object
  • Object
show all
Defined in:
lib/core/filtering/post_process_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document, matching_rule) ⇒ PostProcessResult

Returns a new instance of PostProcessResult.



16
17
18
19
20
# File 'lib/core/filtering/post_process_result.rb', line 16

def initialize(document, matching_rule)
  @document = document
  @matching_rule = matching_rule
  Utility::Logger.debug("Document '#{document['id']}' matched filtering rule: #{matching_rule.id}. It will be #{matching_rule.policy}d")
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



14
15
16
# File 'lib/core/filtering/post_process_result.rb', line 14

def document
  @document
end

#matching_ruleObject (readonly)

Returns the value of attribute matching_rule.



14
15
16
# File 'lib/core/filtering/post_process_result.rb', line 14

def matching_rule
  @matching_rule
end

Instance Method Details

#is_include?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/core/filtering/post_process_result.rb', line 22

def is_include?
  matching_rule.is_include?
end