jperry/teamcity-ruby-client

build_statistics returns Array, but not Mash

Closed this issue · 1 comments

Well, all other methods return Hashie::Mash, but this method gives me Array.
I think it would be better to return Mash, not Array.

Also, I got solution for this: Hash[TeamCity.build_statistics(build_id).map(&:values).map(&:flatten)]

@aawray - We do have other methods returning Arrays i.e. TeamCity.projects and this one in particular I would like to keep it an array since some of the names of the settings wouldn't convert very well into methods, i.e. buildStageDuration:artifactsPublishing".