Method: Datamappify::Data::Mapper::Attribute#primary_attribute?

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

#primary_attribute?Boolean

Primary attribute is from the same data provider and the same source class

Returns:

  • (Boolean)


123
124
125
# File 'lib/datamappify/data/mapper/attribute.rb', line 123

def primary_attribute?
  provider_name == primary_provider_name && primary_source_class == source_class
end