class Mhc::Command::Cache
Public Class Methods
new(datastore)
click to toggle source
# File lib/mhc/command/cache.rb, line 5 def initialize(datastore) epoch = Date.new(1970, 1, 1) puts"UID,MTIME,MIN,MAX,CATEGORIES,RECURRENCE,SUBJECT" datastore.each_cache_entry do |uid, ent| puts"#{ent.uid},#{ent.mtime},#{epoch + ent.range.min},#{epoch + ent.range.max},#{(ent.categories||[]).join(' ')},#{ent.recurrence},#{ent.subject}" end end