Class: Checkoff::ProjectSelectorEvaluator

Inherits:
SelectorEvaluator show all
Defined in:
lib/checkoff/internal/project_selector_evaluator.rb

Overview

Evaluates project selectors against a project

Instance Method Summary collapse

Methods inherited from SelectorEvaluator

#evaluate

Constructor Details

#initialize(project:, projects: Checkoff::Projects.new, custom_fields: Checkoff::CustomFields.new, workspaces: Checkoff::Workspaces.new, portfolios: Checkoff::Portfolios.new) ⇒ ProjectSelectorEvaluator

Returns a new instance of ProjectSelectorEvaluator.

Parameters:



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/checkoff/internal/project_selector_evaluator.rb', line 16

def initialize(project:,
               projects: Checkoff::Projects.new,
               custom_fields: Checkoff::CustomFields.new,
               workspaces: Checkoff::Workspaces.new,
               portfolios: Checkoff::Portfolios.new)
  @item = project
  @projects = projects
  @custom_fields = custom_fields
  @workspaces = workspaces
  @portfolios = portfolios
  super()
end