ads_common/lib/ads_common/results_extractor.rb
def find_named_entry(data_array, name)
      index = data_array.index {|item| name.eql?(item[:name])}
      return index.nil? ? nil : data_array[index]
    end
def find_named_entry(data_array, name)
      index = data_array.index {|item| name.eql?(item[:name])}
      return index.nil? ? nil : data_array[index]
    end
def find_named_entry ( data_array , name ) index = data_array . index { | item | name . eql? ( item [ :name ] ) } return index . nil? ? nil : data_array [ index ] end
Finds an item in an Array based on its ':name' field.
Finds an item in an Array based on its : name field .