Class: Tyme::Manager
- Inherits:
-
Object
- Object
- Tyme::Manager
- Defined in:
- lib/tyme/manager.rb
Instance Method Summary collapse
-
#initialize(db_path = nil, last_output = nil) ⇒ Manager
constructor
A new instance of Manager.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/tyme/manager.rb', line 11 def run @last.process.each do |user, value| value.each do |date, duration| @db.add_entry( user, date, duration ) end end @db.save end |