Class: SmartCore::Operation

Inherits:
Object
  • Object
show all
Includes:
Interface::Callable, Interface::DI, Interface::Result
Defined in:
lib/smart_core/operation.rb,
lib/smart_core/operation/errors.rb,
lib/smart_core/operation/version.rb

Overview

rubocop:disable Style/StaticClass

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassConstructor, Interface, Result Classes: InstanceBuilder

Constant Summary collapse

Error =

Since:

  • 0.1.0

Class.new(SmartCore::Error)
ArgumentError =

Since:

  • 0.1.0

Class.new(SmartCore::ArgumentError)
ResultCoreMethodOverlapError =

Since:

  • 0.1.0

Class.new(Error)
VERSION =

Returns:

  • (String)

Since:

  • 0.1.0

Version:

  • 0.2.0

'0.2.0'

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Interface::DI

included

Methods included from Interface::Callable

included

Methods included from Interface::Result

#Callback, #Failure, #Fatal, #Success

Class Method Details

.inherited(child_klass) ⇒ 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.

This method returns an undefined value.

Parameters:

  • child_klass (Class)

Since:

  • 0.1.0



26
27
28
29
# File 'lib/smart_core/operation.rb', line 26

def inherited(child_klass)
  SmartCore::Operation::ClassConstructor.construct(child_klass)
  super
end

Instance Method Details

#callSmartCore::Operation::Result::Success, ...



46
47
48
# File 'lib/smart_core/operation.rb', line 46

def call
  Success()
end