Class: PoolParty::Verifiers::Ping
- Inherits:
-
VerifierBase
- Object
- VerifierBase
- PoolParty::Verifiers::Ping
- Includes:
- Pinger
- Defined in:
- lib/poolparty/verification/verifiers/ping.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Attributes inherited from VerifierBase
Instance Method Summary collapse
-
#initialize(port = 80) ⇒ Ping
constructor
A new instance of Ping.
- #passing? ⇒ Boolean
Methods included from Pinger
Methods inherited from VerifierBase
Constructor Details
#initialize(port = 80) ⇒ Ping
Returns a new instance of Ping.
8 9 10 |
# File 'lib/poolparty/verification/verifiers/ping.rb', line 8 def initialize(port=80) @port = port end |
Instance Attribute Details
#port ⇒ Object (readonly)
Returns the value of attribute port.
7 8 9 |
# File 'lib/poolparty/verification/verifiers/ping.rb', line 7 def port @port end |
Instance Method Details
#passing? ⇒ Boolean
11 12 13 |
# File 'lib/poolparty/verification/verifiers/ping.rb', line 11 def passing? ping_port(host, port, 3) end |