Class: SmartCore::Operation::InstanceBuilder Private

Inherits:
Object
  • Object
show all
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.

Since:

  • 0.2.0

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

Since:

  • 0.2.0



28
29
30
31
32
33
# File 'lib/smart_core/operation/instance_builder.rb', line 28

def initialize(operation_object, operation_klass, parameters, options)
  @operation_object = operation_object
  @operation_klass = operation_klass
  @parameters = parameters
  @options = options
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.

Parameters:

Returns:

Since:

  • 0.2.0



15
16
17
# File 'lib/smart_core/operation/instance_builder.rb', line 15

def call(operation_object, operation_klass, parameters, options)
  new(operation_object, operation_klass, parameters, options).call
end

Instance Method Details

#callSmartCore::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.

Returns:

Since:

  • 0.2.0



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
    initialize_options
    call_original_methods
    make_operation_caller_yieldable
  end
end