Method: CommandFeedback::Service#process

Defined in:
lib/command_feedback/feedback.rb

#processObject



33
34
35
36
37
38
39
# File 'lib/command_feedback/feedback.rb', line 33

def process
  if was_successful?
    SuccessfulFeedback.new(@response["question"])
  else
    ErrorFeedback.new(@response["errors"])
  end
end