Class: Roseflow::OpenRouter::OperationHandler
- Inherits:
-
Object
- Object
- Roseflow::OpenRouter::OperationHandler
- Defined in:
- lib/roseflow/open_router/operation_handler.rb
Constant Summary collapse
- OPERATION_CLASSES =
{ completion: Operations::Completion, }
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(operation, options = {}) ⇒ OperationHandler
constructor
A new instance of OperationHandler.
Constructor Details
#initialize(operation, options = {}) ⇒ OperationHandler
Returns a new instance of OperationHandler.
12 13 14 15 |
# File 'lib/roseflow/open_router/operation_handler.rb', line 12 def initialize(operation, = {}) @operation = operation @options = end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/roseflow/open_router/operation_handler.rb', line 17 def call operation_class.new(@options) end |