Class: Core::Filtering::PostProcessResult
- Inherits:
-
Object
- Object
- Core::Filtering::PostProcessResult
- Defined in:
- lib/core/filtering/post_process_result.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#matching_rule ⇒ Object
readonly
Returns the value of attribute matching_rule.
Instance Method Summary collapse
-
#initialize(document, matching_rule) ⇒ PostProcessResult
constructor
A new instance of PostProcessResult.
- #is_include? ⇒ Boolean
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
#document ⇒ Object (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_rule ⇒ Object (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
22 23 24 |
# File 'lib/core/filtering/post_process_result.rb', line 22 def is_include? matching_rule.is_include? end |