2013-08-04 20:43:36 +00:00
|
|
|
class TimingParser
|
|
|
|
|
|
|
|
def self.parse(data)
|
2013-08-13 17:45:36 +00:00
|
|
|
data.lines.map { |line| parse_line(line) }
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.parse_line(line)
|
|
|
|
delay, size = line.split
|
|
|
|
[delay.to_f, size.to_i]
|
2013-08-04 20:43:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|