Class: Checkoff::SelectorClasses::Section::FunctionEvaluator

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

Overview

Base class to evaluate a project selector function given fully evaluated arguments

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#evaluate, #evaluate_arg?, #matches?

Constructor Details

#initialize(selector:, sections:, client:) ⇒ FunctionEvaluator

Returns a new instance of FunctionEvaluator.

Parameters:

  • selector (Array<(Symbol, Array)>, String)
  • client (Asana::Client)
  • sections (Checkoff::Sections)


13
14
15
16
17
18
19
20
21
# File 'lib/checkoff/internal/selector_classes/section/function_evaluator.rb', line 13

def initialize(selector:,
               sections:,
               client:,
               **)
  @selector = selector
  @sections = sections
  @client = client
  super()
end