lib/checkoff/internal/section_selector_evaluator.rb in checkoff-0.109.0 vs lib/checkoff/internal/section_selector_evaluator.rb in checkoff-0.110.0
- old
+ new
@@ -9,18 +9,22 @@
class SectionSelectorEvaluator < SelectorEvaluator
# @param section [Asana::Resources::Project]
# @param client [Asana::Client]
# @param projects [Checkoff::Projects]
# @param sections [Checkoff::Sections]
+ # @param custom_fields [Checkoff::CustomFields]
def initialize(section:,
client:,
projects: Checkoff::Projects.new(client: client),
- sections: Checkoff::Sections.new)
+ 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
private
@@ -39,18 +43,20 @@
FUNCTION_EVALUTORS
end
# @return [Hash]
def initializer_kwargs
- { sections: sections, projects: projects, client: client }
+ { sections: sections, projects: projects, client: client, custom_fields: custom_fields }
end
# @return [Asana::Resources::Project]
attr_reader :item
# @return [Checkoff::Sections]
attr_reader :sections
# @return [Checkoff::Projects]
attr_reader :projects
+ # @return [Checkoff::CustomFields]
+ attr_reader :custom_fields
# @return [Asana::Client]
attr_reader :client
end
end