lib/checkoff/portfolios.rb in checkoff-0.100.0 vs lib/checkoff/portfolios.rb in checkoff-0.101.0

- old
+ new

@@ -76,9 +76,19 @@ options[:fields] += extra_fields client.portfolios.find_by_id(portfolio_gid, options: options) end cache_method :portfolio_by_gid, SHORT_CACHE_TIME + # @param workspace_name [String] + # @param portfolio_name [String] + # + # @return [Enumerable<Asana::Resources::Project>] + def projects_in_portfolio(workspace_name, portfolio_name) + portfolio = portfolio_or_raise(workspace_name, portfolio_name) + portfolio.get_items + end + cache_method :projects_in_portfolio, LONG_CACHE_TIME + private # @return [Checkoff::Workspaces] attr_reader :workspaces