Module: Workflows::StepService

Instance Method Summary collapse

Instance Method Details

#argsObject Also known as: get_args



17
18
19
# File 'lib/workflows/step_service.rb', line 17

def args
  @wf_args
end

#get_outputObject



34
35
36
# File 'lib/workflows/step_service.rb', line 34

def get_output
  @wf_output
end

#get_stateObject



26
27
28
# File 'lib/workflows/step_service.rb', line 26

def get_state
  @wf_state
end

#set_args(args) ⇒ Object

Getter, Setter methods



12
13
14
15
# File 'lib/workflows/step_service.rb', line 12

def set_args(args)
  @wf_args ||=
    OpenStruct.new(args)
end

#set_output(output) ⇒ Object



30
31
32
# File 'lib/workflows/step_service.rb', line 30

def set_output(output)
  @wf_output = output
end

#set_state(state) ⇒ Object



22
23
24
# File 'lib/workflows/step_service.rb', line 22

def set_state(state)
  @wf_state = OpenStruct.new(state)
end