Class: Aggro::Handler::Command

Inherits:
Struct
  • Object
show all
Defined in:
lib/aggro/handler/command.rb

Overview

Private: Handler for incoming command requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



4
5
6
# File 'lib/aggro/handler/command.rb', line 4

def message
  @message
end

#serverObject

Returns the value of attribute server

Returns:

  • (Object)

    the current value of server



4
5
6
# File 'lib/aggro/handler/command.rb', line 4

def server
  @server
end

Instance Method Details

#callObject



5
6
7
# File 'lib/aggro/handler/command.rb', line 5

def call
  commandee_local? ? handle_local : handle_foreign
end