Module: MongoModel::PrettyInspect

Extended by:
ActiveSupport::Concern
Included in:
EmbeddedDocument
Defined in:
lib/mongomodel/concerns/pretty_inspect.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary (collapse)

Instance Method Details

- (Object) inspect

Returns the contents of the document as a nicely formatted string.



18
19
20
# File 'lib/mongomodel/concerns/pretty_inspect.rb', line 18

def inspect
  "#<#{self.class.name} #{attributes_for_inspect}>"
end