Class: ApiHeaderOptimizer::Optimizer
- Inherits:
-
Object
- Object
- ApiHeaderOptimizer::Optimizer
- Defined in:
- lib/api_header_optimizer/optimizer.rb
Instance Method Summary collapse
-
#initialize(uri, headers) ⇒ Optimizer
constructor
A new instance of Optimizer.
- #optimize ⇒ Object
Constructor Details
Instance Method Details
#optimize ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/api_header_optimizer/optimizer.rb', line 11 def optimize puts "Starting optimization..." @tester.test_combinations optimal_headers = find_optimal_headers if optimal_headers.empty? puts "No optimal headers found." else puts "Optimal headers found: #{optimal_headers}" end optimal_headers end |