Class: Foobara::Agent::GiveUp

Inherits:
Command
  • Object
show all
Defined in:
foobara-agent-0.1.0/src/foobara/agent/give_up.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Method Summary collapse

Methods inherited from Command

install!

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Instance Method Details

#executeObject



9
10
11
12
13
# File 'src/foobara/agent/give_up.rb', line 9

def execute
  mark_given_up

  nil
end

#mark_given_upObject



15
16
17
# File 'src/foobara/agent/give_up.rb', line 15

def mark_given_up
  command_connector.give_up(message_to_user)
end