Module: Elasticated::Mixins::Inspectionable

Instance Method Summary collapse

Instance Method Details

#inspect(show_original = false) ⇒ Object



5
6
7
8
# File 'lib/elasticated/mixins/inspectionable.rb', line 5

def inspect(show_original=false)
  return super() if show_original
  "#<#{self.class.name}:#{text_for_inspect}>"
end

#text_for_inspectObject



10
11
12
# File 'lib/elasticated/mixins/inspectionable.rb', line 10

def text_for_inspect
  build.to_json # default implementation
end