lib/infuser/collections/proxy.rb
def data
        set.each_with_object({}) do |item, hash|
          item.data.each do |key, value|
            hash[key] = value
          end
        end
      end
# For items with subitems that all live within the same table, eg a contact and it's 3 email addresses
For items with subitems that all live within the same table, eg a contact and it's 3 email addresses
For items with subitems that all live within the same table eg a contact and it ' s 3 email addresses
def data
        set.each_with_object({}) do |item, hash|
          item.data.each do |key, value|
            hash[key] = value
          end
        end
      end
def data set . each_with_object ( { } ) do | item , hash | item . data . each do | key , value | hash [ key ] = value end end end
For items with subitems that all live within the same table, eg a contact and it's 3 email addresses
For items with subitems that all live within the same table eg a contact and it ' s 3 email addresses