Class: McQuery::Ping
- Inherits:
-
Object
- Object
- McQuery::Ping
- Defined in:
- lib/McQuery/ping.rb
Instance Attribute Summary collapse
-
#motd ⇒ Object
readonly
Returns the value of attribute motd.
-
#players_max ⇒ Object
readonly
Returns the value of attribute players_max.
-
#players_online ⇒ Object
readonly
Returns the value of attribute players_online.
-
#protocol_version ⇒ Object
readonly
Returns the value of attribute protocol_version.
-
#server_version ⇒ Object
readonly
Returns the value of attribute server_version.
Instance Method Summary collapse
-
#initialize(hostname, port) ⇒ Ping
constructor
A new instance of Ping.
Constructor Details
#initialize(hostname, port) ⇒ Ping
Returns a new instance of Ping.
6 7 8 9 10 |
# File 'lib/McQuery/ping.rb', line 6 def initialize(hostname, port) @hostname = hostname @port = port doPing end |
Instance Attribute Details
#motd ⇒ Object (readonly)
Returns the value of attribute motd.
5 6 7 |
# File 'lib/McQuery/ping.rb', line 5 def motd @motd end |
#players_max ⇒ Object (readonly)
Returns the value of attribute players_max.
5 6 7 |
# File 'lib/McQuery/ping.rb', line 5 def players_max @players_max end |
#players_online ⇒ Object (readonly)
Returns the value of attribute players_online.
5 6 7 |
# File 'lib/McQuery/ping.rb', line 5 def players_online @players_online end |
#protocol_version ⇒ Object (readonly)
Returns the value of attribute protocol_version.
5 6 7 |
# File 'lib/McQuery/ping.rb', line 5 def protocol_version @protocol_version end |
#server_version ⇒ Object (readonly)
Returns the value of attribute server_version.
5 6 7 |
# File 'lib/McQuery/ping.rb', line 5 def server_version @server_version end |