I am trying to synchronize members in the db with an external source
My plan was to use the array collection in the active record class and on each update for a member found in the external source, I would remove that member entry in the array(if it exists) then after I am done iterating the external source I would iterate and operate on the members left in the array.
The question is how to find the index for the array with a specified id?
member_queue Array[2]
[0] #<Member:0x7181404>
@attributes Hash[9]
'name' "Steve"
'id' "953125641"
@attributes_cache Hash[0]
[1] #<Member:0x717fb68>
@attributes Hash[9]
@attributes_cache Hash[0]
for example, I would search for id="953125641" and that would return 0 so I could delete that entry from the array