dblessing / rundeck-ruby

Rundeck Ruby Client - A Ruby wrapper around the Rundeck API
http://blessing.io/rundeck-ruby/
BSD 2-Clause "Simplified" License
17 stars 11 forks source link

Support deep objectification of arrays #13

Closed dblessing closed 9 years ago

dblessing commented 9 years ago

If objectify is called with a top-level array it will return an array of objectified hashes. However, if an array is a deeper element it will not be objectified. The problem is that certain endpoints in Rundeck return a top level object or two and then have an array of projects or jobs further down. These need to be objectified.

This is evident when working with the method at https://github.com/dblessing/rundeck-ruby/blob/master/lib/rundeck/client/execution.rb#L178.

For now I'm commenting out methods that have a bad reaction to this and it will be addressed before 1.0