lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.97.0 vs lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.98.0
- old
+ new
@@ -7,14 +7,17 @@
module Checkoff
# Evaluates task selectors against a task
class TaskSelectorEvaluator < SelectorEvaluator
# @param task [Asana::Resources::Task]
# @param tasks [Checkoff::Tasks]
+ # @param timelines [Checkoff::Timelines]
def initialize(task:,
- tasks: Checkoff::Tasks.new)
+ tasks: Checkoff::Tasks.new,
+ timelines: Checkoff::Timelines.new)
@item = task
@tasks = tasks
+ @timelines = timelines
super()
end
private
@@ -33,14 +36,16 @@
FUNCTION_EVALUTORS
end
# @return [Hash]
def initializer_kwargs
- { tasks: tasks }
+ { tasks: tasks, timelines: timelines }
end
# @return [Asana::Resources::Task]
attr_reader :item
# @return [Checkoff::Tasks]
attr_reader :tasks
+ # @return [Checkoff::Timelines]
+ attr_reader :timelines
end
end