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:), sections: Checkoff::Sections.new(client:), custom_fields: Checkoff::CustomFields.new(client:), **_kwargs) ⇒ SectionSelectorEvaluator

Returns a new instance of SectionSelectorEvaluator.

Parameters:

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


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

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