lib/checkoff/internal/project_selector_evaluator.rb in checkoff-0.165.0 vs lib/checkoff/internal/project_selector_evaluator.rb in checkoff-0.166.0

- old
+ new

@@ -8,16 +8,22 @@ # Evaluates project selectors against a project class ProjectSelectorEvaluator < SelectorEvaluator # @param project [Asana::Resources::Project] # @param projects [Checkoff::Projects] # @param custom_fields [Checkoff::CustomFields] + # @param workspaces [Checkoff::Workspaces] + # @param portfolios [Checkoff::Portfolios] def initialize(project:, projects: Checkoff::Projects.new, - custom_fields: Checkoff::CustomFields.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 private @@ -36,16 +42,23 @@ FUNCTION_EVALUTORS end # @return [Hash] def initializer_kwargs - { projects: projects, custom_fields: custom_fields } + { + projects: projects, custom_fields: custom_fields, + workspaces: workspaces, portfolios: portfolios + } end # @return [Asana::Resources::Project] attr_reader :item # @return [Checkoff::Projects] attr_reader :projects # @return [Checkoff::CustomFields] attr_reader :custom_fields + # @return [Checkoff::Workspaces] + attr_reader :workspaces + # @return [Checkoff::Portfolios] + attr_reader :portfolios end end