Module: ESM::Command::Server::Territories::V1
- Defined in:
- lib/esm/command/server/territories.rb
Instance Method Summary collapse
Instance Method Details
#on_execute ⇒ Object
50 51 52 |
# File 'lib/esm/command/server/territories.rb', line 50 def on_execute deliver!(query: "list_territories", uid: current_user.steam_uid) end |
#on_response ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/esm/command/server/territories.rb', line 54 def on_response check_for_no_territories! # Apparently past me I didn't default the response to an array if there was only one territory... @response = [@response] if @response.is_a?(OpenStruct) @response.each do |territory| reply((territory)) end end |