Class: Yammer::Stats
- Inherits:
-
Object
- Object
- Yammer::Stats
- Defined in:
- lib/yammer/stats.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Stats
constructor
A new instance of Stats.
- #top_updaters(options = {}) ⇒ Object
Constructor Details
Instance Method Details
#top_updaters(options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/yammer/stats.rb', line 12 def top_updaters( = {}) users = @yammer.users(:sort_by => "messages", :reverse => false) if .delete(:dump) == true users.each {|u| puts "#{u.name} - #{u.stats.updates}" } else template, output_file = () output = ERB.new(IO.read(template), nil, '<>').result(binding) File.open(output_file, 'w') {|f| f.write(output)} end end |