def find_value(context)
      locations.each do |location|
        begin
          value = context.instance_exec(&location)
          next if value.nil?
          return value
        rescue
        end
      end

      nil
    end
def find_value(context)
      locations.each do |location|
        begin
          value = context.instance_exec(&location)
          next if value.nil?
          return value
        rescue
        end
      end

      nil
    end
Finds attribute value in the JSON response by looking at the given locations.