Class: Steam::Server
- Inherits:
-
Object
- Object
- Steam::Server
- Defined in:
- lib/steam/server.rb
Overview
Represents a Steam server we can use
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
The host IP of the Steam server.
-
#port ⇒ Object
readonly
The host port of the Steam server.
Instance Method Summary collapse
-
#initialize(host, port) ⇒ Server
constructor
Instantiate a Server.
Constructor Details
#initialize(host, port) ⇒ Server
Instantiate a Server
21 22 23 24 |
# File 'lib/steam/server.rb', line 21 def initialize(host, port) @host = host @port = port end |
Instance Attribute Details
#host ⇒ Object (readonly)
The host IP of the Steam server
12 13 14 |
# File 'lib/steam/server.rb', line 12 def host @host end |
#port ⇒ Object (readonly)
The host port of the Steam server
15 16 17 |
# File 'lib/steam/server.rb', line 15 def port @port end |