Method: Datamappify::Data::Mapper#classified_attributes

Defined in:
lib/datamappify/data/mapper.rb

#classified_attributesHash<Set>

Returns attribute sets classified by the names of their data provider.

Returns:

  • (Hash<Set>)

    attribute sets classified by the names of their data provider



56
57
58
# File 'lib/datamappify/data/mapper.rb', line 56

def classified_attributes
  @classified_attributes ||= Set.new(attributes).classify(&:provider_name)
end