Class: Line

Inherits:
Object
  • Object
show all
Defined in:
lib/pingman/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLine

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

#addressObject

Returns the value of attribute address.



2
3
4
# File 'lib/pingman/line.rb', line 2

def address
  @address
end

#avgObject

Returns the value of attribute avg.



2
3
4
# File 'lib/pingman/line.rb', line 2

def avg
  @avg
end

#hostnameObject

Returns the value of attribute hostname.



2
3
4
# File 'lib/pingman/line.rb', line 2

def hostname
  @hostname
end

#logObject

Returns the value of attribute log.



2
3
4
# File 'lib/pingman/line.rb', line 2

def log
  @log
end

#lossObject

Returns the value of attribute loss.



2
3
4
# File 'lib/pingman/line.rb', line 2

def loss
  @loss
end

#resObject

Returns the value of attribute res.



2
3
4
# File 'lib/pingman/line.rb', line 2

def res
  @res
end

#rowObject

Returns the value of attribute row.



2
3
4
# File 'lib/pingman/line.rb', line 2

def row
  @row
end

#rttObject

Returns the value of attribute rtt.



2
3
4
# File 'lib/pingman/line.rb', line 2

def rtt
  @rtt
end

#sendingObject

Returns the value of attribute sending.



2
3
4
# File 'lib/pingman/line.rb', line 2

def sending
  @sending
end

#sntObject

Returns the value of attribute snt.



2
3
4
# File 'lib/pingman/line.rb', line 2

def snt
  @snt
end