Open Duartemartins opened 3 years ago
@Duartemartins I met it today. After debugging into the codebase, I found this line causes the error https://github.com/Asana/ruby-asana/blob/e53547ab0ff79580dd39b54705c0d30b6d52f079/lib/asana/resources/portfolio.rb#L168 where type must be CustomFieldSetting
rather than self
If I make the following query:
client.portfolios.get_portfolio(portfolio_gid: portfolio_gid, options: { pretty: true }).custom_field_settings
I get:
NoMethodError: undefined method 'new' for #<Asana::Resources::Portfolio:HexString>
The same thing happens when I try to use the .get_items methodDocumentation referenced here: https://www.rubydoc.info/github/Asana/ruby-asana/Asana/Resources/Portfolio