Class: ESM::Request

Inherits:
ApplicationRecord show all
Defined in:
lib/esm/model/request.rb,
lib/esm/model/request/overseer.rb

Defined Under Namespace

Classes: Overseer

Instance Method Summary collapse

Instance Method Details

#respond(accepted) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/esm/model/request.rb', line 5

def respond(accepted)
  @accepted = accepted

  # Build the command
  command = ESM::Command[command_name].new

  # Respond
  command.from_request(self)

  # Remove the request
  destroy
end