Module: Datamappify::Entity::Inspectable::ClassMethods

Defined in:
lib/datamappify/entity/inspectable.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



17
18
19
20
21
22
23
# File 'lib/datamappify/entity/inspectable.rb', line 17

def inspect
  inspectable = self.attribute_set.map do |attribute|
    "#{attribute.name}: #{attribute.class.primitive}"
  end.join(", ")

  "#<#{name} #{inspectable}>"
end