现在有一个数组 abc 如下: [{\"alarmSeverity\"=>\"\", \"securityName\"=>\"\", \"authPass\"=>\"\", \"ip\"=>nil, \"resources\"=>[\"9999994\", \"9999990\", \"9999991\", \"9999992\", \"9999993\"], \"updateTime\"=>\"2018-07-04 16:06:41\", \"community\"=>\"\", \"type\"=>nil, \"version\"=>\"2c\", \"authProtocol\"=>\"\", \"alarmType\"=>\"\", \"createTime\"=>\"2018-07-04 16:06:41\", \"port\"=>nil, \"name\"=>\"1\", \"privProtocol\"=>\"\", \"id\"=>\"bd41966778b84176a621bcd326d5f357\", \"privPass\"=>\"\", \"resourceType\"=>\"1\"}, {\"alarmSeverity\"=>\"\", \"securityName\"=>\"\", \"authPass\"=>\"\", \"ip\"=>nil, \"resources\"=>[\"9999994\", \"9999990\", \"9999991\", \"9999992\", \"9999993\"], \"updateTime\"=>\"2018-07-04 16:06:22\", \"community\"=>\"\", \"type\"=>nil, \"version\"=>\"\", \"authProtocol\"=>\"\", \"alarmType\"=>\"\", \"createTime\"=>\"2018-07-04 16:06:22\", \"port\"=>nil, \"name\"=>\"\", \"privProtocol\"=>\"\", \"id\"=>\"7c6c388e120648749edb86c3ca70a946\", \"privPass\"=>\"\", \"resourceType\"=>\"1\"}, {\"alarmSeverity\"=>\"1\", \"securityName\"=>\"test\", \"authPass\"=>\"testpwd1\", \"ip\"=>nil, \"resources\"=>[\"9999994\", \"9999990\", \"9999991\", \"9999992\", \"9999993\"], \"updateTime\"=>\"2018-07-04 15:06:55\", \"community\"=>\"public\", \"type\"=>nil, \"version\"=>\"v3\", \"authProtocol\"=>\"SHA\", \"alarmType\"=>\"1\", \"createTime\"=>\"2018-07-04 15:06:55\", \"port\"=>nil, \"name\"=>\"test_subscribe\", \"privProtocol\"=>\"加密 RSA\", \"id\"=>\"b3b82abf62124d0d90f7098d6bca9ec1\", \"privPass\"=>\"testpwd2\", \"resourceType\"=>\"\"},
我想将 abc 中的 id 取出来的话,我用的是 abc.id 的方式,但是报错:NoMethodError: undefined method `id' for #<Array:,是什么原因?