Class: Multimeter::Counter

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



36
37
38
39
40
41
# File 'lib/multimeter.rb', line 36

def to_h
  {
    :type => :counter,
    :count => count
  }
end