Class: Sbmt::Strangler::WorkModes::Base
- Inherits:
-
Object
- Object
- Sbmt::Strangler::WorkModes::Base
- Defined in:
- lib/sbmt/strangler/work_modes/base.rb
Instance Attribute Summary collapse
-
#feature_flags ⇒ Object
readonly
Returns the value of attribute feature_flags.
-
#metric_tracker ⇒ Object
readonly
Returns the value of attribute metric_tracker.
-
#rails_controller ⇒ Object
readonly
Returns the value of attribute rails_controller.
-
#strangler_action ⇒ Object
readonly
Returns the value of attribute strangler_action.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(rails_controller:, strangler_action:, metric_tracker:, feature_flags:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(rails_controller:, strangler_action:, metric_tracker:, feature_flags:) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 9 def initialize(rails_controller:, strangler_action:, metric_tracker:, feature_flags:) @rails_controller = rails_controller @strangler_action = strangler_action @metric_tracker = metric_tracker @feature_flags = feature_flags end |
Instance Attribute Details
#feature_flags ⇒ Object (readonly)
Returns the value of attribute feature_flags.
7 8 9 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 7 def feature_flags @feature_flags end |
#metric_tracker ⇒ Object (readonly)
Returns the value of attribute metric_tracker.
7 8 9 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 7 def metric_tracker @metric_tracker end |
#rails_controller ⇒ Object (readonly)
Returns the value of attribute rails_controller.
7 8 9 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 7 def rails_controller @rails_controller end |
#strangler_action ⇒ Object (readonly)
Returns the value of attribute strangler_action.
7 8 9 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 7 def strangler_action @strangler_action end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/sbmt/strangler/work_modes/base.rb', line 16 def call raise NotImplementedError end |