Module: Trailblazer::Finder::Utils::Array
- Defined in:
- lib/trailblazer/finder/utils/array.rb
Class Method Summary collapse
Class Method Details
.convert_hashes_in_array_to_struct(hash) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/trailblazer/finder/utils/array.rb', line 10 def convert_hashes_in_array_to_struct(hash) result = [] hash.each do |h| result << (OpenStruct.new h) end result end |