Module: ServiceActor::Core

Defined in:
lib/service_actor/core.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/service_actor/core.rb', line 5

def included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#_callObject

This method is used internally to override behavior on call. Overriding ‘call` instead would mean that end-users have to call `super` in their actors. When overriding and calling `super`, make sure the final value is the return value of `super` (see e.g. ServiceActor::Checkable). :nodoc:



51
52
53
# File 'lib/service_actor/core.rb', line 51

def _call
  call
end

#callObject

To implement in your actors.



40
# File 'lib/service_actor/core.rb', line 40

def call; end

#initialize(result) ⇒ Object

:nodoc:



35
36
37
# File 'lib/service_actor/core.rb', line 35

def initialize(result)
  @result = result
end

#rollbackObject

To implement in your actors.



43
# File 'lib/service_actor/core.rb', line 43

def rollback; end