Sha256: 3f08dc5b45fc240ec53eab5beb004858c873a52bf2946269fee0eea3cfad4c77
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
module Commands class Clients def initialize(store=YamlFileStore.new) @store = store end def call @store.each do |client, tracked_time| if tracked_time.nil? puts client next end total_time = tracked_time.map {|key, value| value.reduce(&:+) }.reduce &:+ puts "#{client} #{total_time}m" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detom-0.0.2 | lib/detom/commands/clients.rb |
detom-0.0.1 | lib/detom/commands/clients.rb |