Hey, I am trying to convert this object to an array of ints e.g. array(3,4,6)
- - !ruby/object:Code
attributes:
candidate_id: "3"
attributes_cache: {}
- !ruby/object:Code
attributes:
candidate_id: "4"
attributes_cache: {}
- !ruby/object:Code
attributes:
candidate_id: "6"
attributes_cache: {}
here is what I tried
result = @intersection.map{|c| c.candidate_id}
Thanks