Class: SmartCore::Operation::InstanceBuilder Private
- Inherits:
-
Object
- Object
- SmartCore::Operation::InstanceBuilder
- Defined in:
- lib/smart_core/operation/instance_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ SmartCore::Operation private
- #initialize(operation_object, operation_klass, parameters, options) ⇒ void constructor private
Constructor Details
#initialize(operation_object, operation_klass, parameters, options) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 31 32 33 |
# File 'lib/smart_core/operation/instance_builder.rb', line 28 def initialize(operation_object, operation_klass, parameters, ) @operation_object = operation_object @operation_klass = operation_klass @parameters = parameters = end |
Class Method Details
.call(operation_object, operation_klass, parameters, options) ⇒ SmartCore::Operation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/smart_core/operation/instance_builder.rb', line 15 def call(operation_object, operation_klass, parameters, ) new(operation_object, operation_klass, parameters, ).call end |
Instance Method Details
#call ⇒ SmartCore::Operation
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 43 44 45 46 47 |
# File 'lib/smart_core/operation/instance_builder.rb', line 39 def call operation_object.tap do prevent_parameters_incomparability initialize_parameters call_original_methods make_operation_caller_yieldable end end |