lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.109.0 vs lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.110.0
- old
+ new
@@ -8,16 +8,19 @@
# Evaluates task selectors against a task
class TaskSelectorEvaluator < SelectorEvaluator
# @param task [Asana::Resources::Task]
# @param tasks [Checkoff::Tasks]
# @param timelines [Checkoff::Timelines]
+ # @param custom_fields [Checkoff::CustomFields]
def initialize(task:,
tasks: Checkoff::Tasks.new,
- timelines: Checkoff::Timelines.new)
+ timelines: Checkoff::Timelines.new,
+ custom_fields: Checkoff::CustomFields.new)
@item = task
@tasks = tasks
@timelines = timelines
+ @custom_fields = custom_fields
super()
end
private
@@ -36,16 +39,18 @@
FUNCTION_EVALUTORS
end
# @return [Hash]
def initializer_kwargs
- { tasks: tasks, timelines: timelines }
+ { tasks: tasks, timelines: timelines, custom_fields: custom_fields }
end
# @return [Asana::Resources::Task]
attr_reader :item
# @return [Checkoff::Tasks]
attr_reader :tasks
# @return [Checkoff::Timelines]
attr_reader :timelines
+ # @return [Checkoff::CustomFields]
+ attr_reader :custom_fields
end
end