Module: MongoODM::Document::Inspect::InstanceMethods

Defined in:
lib/mongo_odm/document/inspect.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) inspect



21
22
23
# File 'lib/mongo_odm/document/inspect.rb', line 21

def inspect
  "#<#{self.class.name} #{attributes.except(*private_attribute_names).keys.sort.map{|k| inspect_attribute(k)}.join(", ")}>"
end

- (Object) private_attribute_names



17
18
19
# File 'lib/mongo_odm/document/inspect.rb', line 17

def private_attribute_names
  %w(_class)
end