Class: Checkoff::SectionSelectorEvaluator

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

Overview

Evaluates section selectors against a section

Instance Method Summary collapse

Methods inherited from SelectorEvaluator

#evaluate

Constructor Details

#initialize(section:, client:, projects: Checkoff::Projects.new(client: client), sections: Checkoff::Sections.new(client: client), custom_fields: Checkoff::CustomFields.new(client: client), **_kwargs) ⇒ SectionSelectorEvaluator

Returns a new instance of SectionSelectorEvaluator.

Parameters:

  • section (Asana::Resources::Project)
  • client (Asana::Client)
  • projects (Checkoff::Projects) (defaults to: Checkoff::Projects.new(client: client))
  • sections (Checkoff::Sections) (defaults to: Checkoff::Sections.new(client: client))
  • custom_fields (Checkoff::CustomFields) (defaults to: Checkoff::CustomFields.new(client: client))


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

def initialize(section:,
               client:,
               projects: Checkoff::Projects.new(client: client),
               sections: Checkoff::Sections.new(client: client),
               custom_fields: Checkoff::CustomFields.new(client: client),
               **_kwargs)
  @item = section
  @client = client
  @projects = projects
  @sections = sections
  @custom_fields = custom_fields
  super()
end