Class: ESM::Event::ServerInitialization
- Inherits:
-
Object
- Object
- ESM::Event::ServerInitialization
- Defined in:
- lib/esm/event/server_initialization.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(tcp_client, model, message) ⇒ ServerInitialization
constructor
A new instance of ServerInitialization.
- #run! ⇒ Object
Constructor Details
#initialize(tcp_client, model, message) ⇒ ServerInitialization
Returns a new instance of ServerInitialization.
8 9 10 11 12 13 14 |
# File 'lib/esm/event/server_initialization.rb', line 8 def initialize(tcp_client, model, ) @tcp_client = tcp_client @model = model @message = @community = @model.community @discord_server = @community.discord_server end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/esm/event/server_initialization.rb', line 6 def data @data end |
Instance Method Details
#run! ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/esm/event/server_initialization.rb', line 16 def run! # Updates the database with information from the server initialize_server # We need to let the DLL know some stuff (namely a lot of stuff) build_setting_data # Send message to server send_post_init end |