Class: Yammer::Metrics::Counter

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



42
43
44
45
46
47
# File 'lib/multimeter.rb', line 42

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

#typeObject



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

def type
  :counter
end