| Class | XhochY::Drossellog::DataCounter |
| In: |
xhochy/drossellog/datacounter.rb
|
| Parent: | Object |
| data | [R] |
Creates a new DataCounter instance
# File xhochy/drossellog/datacounter.rb, line 8
8: def initialize
9: @data = 0
10: end
Add the given size to the whole transfer amount
# File xhochy/drossellog/datacounter.rb, line 13
13: def add(size)
14: if size.class == Fixnum
15: @data += size
16: end
17:
18: if size.class == DataCounter
19: @data += size.data
20: end
21: end