Class: EndState::Finalizer

Inherits:
Object
  • Object
show all
Includes:
Messages
Defined in:
lib/end_state/finalizer.rb

Direct Known Subclasses

EndState::Finalizers::Persistence

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Messages

#add_error, #add_success

Constructor Details

#initialize(object, state, params) ⇒ Finalizer

Returns a new instance of Finalizer.



6
7
8
9
10
# File 'lib/end_state/finalizer.rb', line 6

def initialize(object, state, params)
  @object = object
  @state = state
  @params = params
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



4
5
6
# File 'lib/end_state/finalizer.rb', line 4

def object
  @object
end

#paramsObject (readonly)

Returns the value of attribute params.



4
5
6
# File 'lib/end_state/finalizer.rb', line 4

def params
  @params
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/end_state/finalizer.rb', line 4

def state
  @state
end

Instance Method Details

#callObject



12
13
14
# File 'lib/end_state/finalizer.rb', line 12

def call
  false
end

#rollbackObject



16
17
18
# File 'lib/end_state/finalizer.rb', line 16

def rollback
  true
end