Class: Checkoff::SelectorClasses::Project::ReadyPFunctionEvaluator

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

Overview

:ready? function

Constant Summary collapse

FUNCTION_NAME =
:ready?

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#initialize

Methods inherited from FunctionEvaluator

#evaluate_arg?

Constructor Details

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

Instance Method Details

#evaluate(project, period = :now_or_before) ⇒ Boolean

Parameters:

  • project (Asana::Resources::Project)
  • period (Symbol<:now_or_before,:this_week>) (defaults to: :now_or_before)

Returns:

  • (Boolean)


35
36
37
# File 'lib/checkoff/internal/selector_classes/project.rb', line 35

def evaluate(project, period = :now_or_before)
  @projects.project_ready?(project, period: period)
end

#matches?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/checkoff/internal/selector_classes/project.rb', line 28

def matches?
  fn?(selector, FUNCTION_NAME)
end