Class: SolidQueueGuard::Recommendations::Topology
- Inherits:
-
Object
- Object
- SolidQueueGuard::Recommendations::Topology
- Defined in:
- lib/solid_queue_guard/recommendations/topology.rb
Class Method Summary collapse
Instance Method Summary collapse
- #analyze ⇒ Object
-
#initialize(configuration:) ⇒ Topology
constructor
A new instance of Topology.
Constructor Details
#initialize(configuration:) ⇒ Topology
Returns a new instance of Topology.
10 11 12 |
# File 'lib/solid_queue_guard/recommendations/topology.rb', line 10 def initialize(configuration:) @configuration = configuration end |
Class Method Details
.analyze(configuration: SolidQueue::Configuration.new) ⇒ Object
6 7 8 |
# File 'lib/solid_queue_guard/recommendations/topology.rb', line 6 def self.analyze(configuration: SolidQueue::Configuration.new) new(configuration: configuration).analyze end |
Instance Method Details
#analyze ⇒ Object
14 15 16 17 18 19 |
# File 'lib/solid_queue_guard/recommendations/topology.rb', line 14 def analyze recommendations = [] recommendations.concat(worker_recommendations) recommendations.concat(pool_recommendations) recommendations.uniq end |