Class: ESM::Command::Territory::SetId
- Inherits:
-
ApplicationCommand
- Object
- Base
- ApplicationCommand
- ESM::Command::Territory::SetId
- Defined in:
- lib/esm/command/territory/set_id.rb
Defined Under Namespace
Modules: V1
Instance Method Summary collapse
Instance Method Details
#on_execute ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/esm/command/territory/set_id.rb', line 29 def on_execute # Require at least 3 characters and a max of 20 check_for_minimum_characters! check_for_maximum_characters! run_database_query!( :set_id, steam_uid: current_user.steam_uid, territory_id: arguments.old_territory_id, new_territory_id: arguments.new_territory_id ) reply() end |