Class: Yammer::Metrics::Counter

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

Instance Method Summary collapse

Instance Method Details

#to_hObject



45
46
47
48
49
50
# File 'lib/multimeter.rb', line 45

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

#typeObject



41
42
43
# File 'lib/multimeter.rb', line 41

def type
  :counter
end