2
我想確定一個日程安排的詳細信息。例如:確定ice_cube日程表
我有一個事件的時間表:event.schedule
"Every 3 months on the 10th day of the month"
由散列表示:
{
:start_date=>2012-02-06 10:37:04 +0100,
:rrules=>[{
:validations=>{
:day_of_month=>[10]},
:rule_type=>"IceCube::MonthlyRule",
:interval=>3
}],
:exrules=>[], :rdates=>[], :exdates=>[]
}
設置的特定形式的元素(下拉,複選框)我需要評估具體的規則。例如對於
event.schedule.interval
我希望
IceCube::MonthlyRule
我沒有找到源的任何方法,也有人做了某事。類似?我的做法是解析哈希並提取每一條規則......
嘿,謝謝你的提示。我試圖找到一些例子,但沒有運氣到目前爲止(以及這一個:https://github.com/juno/rails-recurring-task-demo)你有我的鏈接? – fluxsaas 2012-02-08 11:36:40