Class: Sbmt::Strangler::WorkModes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/strangler/work_modes/base.rb

Direct Known Subclasses

Mirror, Proxy, Replace

Instance Attribute Summary collapse

Instance Method Summary collapse

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_flagsObject (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_trackerObject (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_controllerObject (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_actionObject (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

#callObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/sbmt/strangler/work_modes/base.rb', line 16

def call
  raise NotImplementedError
end