Class: Checkoff::SelectorClasses::Project::DueDateFunctionEvaluator

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

Overview

:due_date function

Constant Summary collapse

FUNCTION_NAME =
:due_date

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(resource) ⇒ String?

Parameters:

  • resource (Asana::Resources::Project)

Returns:

  • (String, nil)


19
20
21
# File 'lib/checkoff/internal/selector_classes/project.rb', line 19

def evaluate(resource)
  resource.due_date
end

#matches?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/checkoff/internal/selector_classes/project.rb', line 13

def matches?
  fn?(selector, FUNCTION_NAME)
end