module Trailblazer::Finder::Utils::Array
Public Instance Methods
convert_hashes_in_array_to_struct(hash)
click to toggle source
# 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