lib/contrast/agent/patching/policy/method_policy.rb in contrast-agent-3.10.2 vs lib/contrast/agent/patching/policy/method_policy.rb in contrast-agent-3.11.0
- old
+ new
@@ -5,12 +5,12 @@
module Agent
module Patching
module Policy
# This class is used to map each method to the trigger node that applies to it
class MethodPolicy
- attr_accessor :source_node, :propagation_node, :trigger_node,
- :inventory_node, :protect_node, :deadzone_node,
- :method_name, :method_visibility, :instance_method
+ attr_reader :deadzone_node, :inventory_node, :propagation_node, :protect_node, :trigger_node
+ attr_accessor :source_node, :method_name, :method_visibility, :instance_method
+
def initialize(source_node: nil, propagation_node: nil,
trigger_node: nil, inventory_node: nil,
protect_node: nil, deadzone_node: nil,
method_name: nil, method_visibility: nil,
instance_method: nil)