Class: Collectd::Packet::Values::Counter
- Defined in:
- lib/collectd/pkt.rb
Instance Method Summary collapse
-
#initialize(c) ⇒ Counter
constructor
A new instance of Counter.
- #to_s ⇒ Object
Methods inherited from Part
Constructor Details
#initialize(c) ⇒ Counter
Returns a new instance of Counter.
78 79 80 |
# File 'lib/collectd/pkt.rb', line 78 def initialize(c) @c = c end |
Instance Method Details
#to_s ⇒ Object
81 82 83 |
# File 'lib/collectd/pkt.rb', line 81 def to_s [@c >> 32, @c & 0xffffffff].pack("NN") end |