Exception: Expect4r::Router::Error::PingError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Expect4r::Router::Error::PingError
- Defined in:
- lib/router/error.rb
Instance Attribute Summary collapse
-
#act_pct ⇒ Object
readonly
Returns the value of attribute act_pct.
-
#dest ⇒ Object
readonly
Returns the value of attribute dest.
-
#exp_pct ⇒ Object
readonly
Returns the value of attribute exp_pct.
-
#ping_output ⇒ Object
readonly
Returns the value of attribute ping_output.
-
#recv ⇒ Object
readonly
Returns the value of attribute recv.
-
#rname ⇒ Object
readonly
Returns the value of attribute rname.
-
#sent ⇒ Object
readonly
Returns the value of attribute sent.
Instance Method Summary collapse
- #err_msg ⇒ Object
-
#initialize(rname, dest, exp_pct, act_pct, sent, recv, output) ⇒ PingError
constructor
A new instance of PingError.
Constructor Details
#initialize(rname, dest, exp_pct, act_pct, sent, recv, output) ⇒ PingError
Returns a new instance of PingError.
33 34 35 36 |
# File 'lib/router/error.rb', line 33 def initialize(rname, dest, exp_pct, act_pct, sent, recv, output) @rname, @dest, @exp_pct, @act_pct, @sent, @recv, @ping_output = \ rname, dest, exp_pct, act_pct, sent, recv, output end |
Instance Attribute Details
#act_pct ⇒ Object (readonly)
Returns the value of attribute act_pct.
32 33 34 |
# File 'lib/router/error.rb', line 32 def act_pct @act_pct end |
#dest ⇒ Object (readonly)
Returns the value of attribute dest.
32 33 34 |
# File 'lib/router/error.rb', line 32 def dest @dest end |
#exp_pct ⇒ Object (readonly)
Returns the value of attribute exp_pct.
32 33 34 |
# File 'lib/router/error.rb', line 32 def exp_pct @exp_pct end |
#ping_output ⇒ Object (readonly)
Returns the value of attribute ping_output.
32 33 34 |
# File 'lib/router/error.rb', line 32 def ping_output @ping_output end |
#recv ⇒ Object (readonly)
Returns the value of attribute recv.
32 33 34 |
# File 'lib/router/error.rb', line 32 def recv @recv end |
#rname ⇒ Object (readonly)
Returns the value of attribute rname.
32 33 34 |
# File 'lib/router/error.rb', line 32 def rname @rname end |
#sent ⇒ Object (readonly)
Returns the value of attribute sent.
32 33 34 |
# File 'lib/router/error.rb', line 32 def sent @sent end |
Instance Method Details
#err_msg ⇒ Object
37 38 39 |
# File 'lib/router/error.rb', line 37 def err_msg "#{@rname} [PingError] : failed to ping #{@dest}, expected/actual pct: #{@exp_pct}/#{@act_pct}" end |