Class: Omnizip::OptimizationRegistry::Strategy
- Inherits:
-
Object
- Object
- Omnizip::OptimizationRegistry::Strategy
- Defined in:
- lib/omnizip/optimization_registry.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**options) ⇒ Strategy
constructor
A new instance of Strategy.
- #optimize(_target) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Strategy
Returns a new instance of Strategy.
26 27 28 |
# File 'lib/omnizip/optimization_registry.rb', line 26 def initialize(**) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
24 25 26 |
# File 'lib/omnizip/optimization_registry.rb', line 24 def @options end |
Class Method Details
.metadata ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/omnizip/optimization_registry.rb', line 35 def self. { name: name, description: "No description provided", category: :general, impact: :unknown, } end |
Instance Method Details
#optimize(_target) ⇒ Object
30 31 32 33 |
# File 'lib/omnizip/optimization_registry.rb', line 30 def optimize(_target) raise NotImplementedError, "#{self.class} must implement #optimize" end |