Class: EndState::Concluder

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

Direct Known Subclasses

EndState::Concluders::Persistence

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Messages

#add_error, #add_success

Constructor Details

#initialize(object, state, params) ⇒ Concluder

Returns a new instance of Concluder.



6
7
8
9
10
# File 'lib/end_state/concluder.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/concluder.rb', line 4

def object
  @object
end

#paramsObject (readonly)

Returns the value of attribute params.



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

def params
  @params
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

Instance Method Details

#callObject



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

def call
  false
end

#rollbackObject



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

def rollback
end