Class: Line
- Inherits:
-
Object
- Object
- Line
- Defined in:
- lib/pingman/line.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#avg ⇒ Object
Returns the value of attribute avg.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#log ⇒ Object
Returns the value of attribute log.
-
#loss ⇒ Object
Returns the value of attribute loss.
-
#res ⇒ Object
Returns the value of attribute res.
-
#row ⇒ Object
Returns the value of attribute row.
-
#rtt ⇒ Object
Returns the value of attribute rtt.
-
#sending ⇒ Object
Returns the value of attribute sending.
-
#snt ⇒ Object
Returns the value of attribute snt.
Instance Method Summary collapse
-
#initialize ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize ⇒ Line
Returns a new instance of Line.
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/pingman/line.rb', line 3 def initialize @hostname = nil @address = nil @res = true @loss = 0.0 @rtt = 0 @avg = 0 @snt = 0 @log = [] @sending = false @row = 0 end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def address @address end |
#avg ⇒ Object
Returns the value of attribute avg.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def avg @avg end |
#hostname ⇒ Object
Returns the value of attribute hostname.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def hostname @hostname end |
#log ⇒ Object
Returns the value of attribute log.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def log @log end |
#loss ⇒ Object
Returns the value of attribute loss.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def loss @loss end |
#res ⇒ Object
Returns the value of attribute res.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def res @res end |
#row ⇒ Object
Returns the value of attribute row.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def row @row end |
#rtt ⇒ Object
Returns the value of attribute rtt.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def rtt @rtt end |
#sending ⇒ Object
Returns the value of attribute sending.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def sending @sending end |
#snt ⇒ Object
Returns the value of attribute snt.
2 3 4 |
# File 'lib/pingman/line.rb', line 2 def snt @snt end |