Class: Checkoff::SelectorClasses::Task::DependentOnPreviousSectionLastMilestonePFunctionEvaluator

Inherits:
FunctionEvaluator show all
Defined in:
lib/checkoff/internal/selector_classes/task.rb

Overview

:dependent_on_previous_section_last_milestone?

Constant Summary collapse

FUNCTION_NAME =
:dependent_on_previous_section_last_milestone?

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#initialize

Methods inherited from FunctionEvaluator

#evaluate_arg?

Methods included from Logging

#debug, #error, #finer, #info, #logger, #warn

Constructor Details

This class inherits a constructor from Checkoff::SelectorClasses::Task::FunctionEvaluator

Instance Method Details

#evaluate(task, limit_to_portfolio_gid: nil) ⇒ Boolean

Parameters:

  • task (Asana::Resources::Task)
  • limit_to_portfolio_gid (String, nil) (defaults to: nil)

    If specified, only projects in this portfolio will be evaluated.

Returns:

  • (Boolean)


305
306
307
308
# File 'lib/checkoff/internal/selector_classes/task.rb', line 305

def evaluate(task, limit_to_portfolio_gid: nil)
  @timelines.task_dependent_on_previous_section_last_milestone?(task,
                                                                limit_to_portfolio_gid:)
end

#matches?Boolean

Returns:

  • (Boolean)


296
297
298
# File 'lib/checkoff/internal/selector_classes/task.rb', line 296

def matches?
  fn?(selector, FUNCTION_NAME)
end