Class: Nayati::Operation
Instance Method Summary
collapse
#camelcased_name, name_as_constant, name_as_namespace, #namespaced_name, #underscored_name, underscored_name
Instance Method Details
#build_implementer(operation_context, result_object) ⇒ Object
17
18
19
|
# File 'app/models/nayati/operation.rb', line 17
def build_implementer(operation_context, result_object)
operation_implementer_klass_name.constantize.new(operation_context, result_object)
end
|
#details_hash ⇒ Object
21
22
23
|
# File 'app/models/nayati/operation.rb', line 21
def details_hash
{ name: self.name, after_success_operation: after_success_operation.try(:name), after_failure_operation: after_failure_operation.try(:name)}
end
|
25
26
27
|
# File 'app/models/nayati/operation.rb', line 25
def format_name
self.name = namespaced_name
end
|
#operation_implementer_klass_name ⇒ Object
13
14
15
|
# File 'app/models/nayati/operation.rb', line 13
def operation_implementer_klass_name
"#{workflow.camelcased_name}NayatiWorkflow::#{self.camelcased_name}NayatiOperation"
end
|