Module: Findable::Inspection

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/findable/inspection.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#inspectObject



11
12
13
14
15
16
# File 'lib/findable/inspection.rb', line 11

def inspect
  _attributes = self.class.column_names.each_with_object([]) {|name, obj|
    obj << "#{name}: #{public_send(name).inspect}"
  }.join(",\s")
  "#<#{self.class} #{_attributes}>"
end