Module: WeaviateRecord::Inspect

Included in:
Base
Defined in:
lib/weaviate_record/inspect.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#inspectObject



5
6
7
8
9
10
11
12
13
# File 'lib/weaviate_record/inspect.rb', line 5

def inspect
  special_attributes, inspection = format_attributes
  string = to_s
  string[-1] = ' '
  string << "id: #{special_attributes['id'].inspect} " << inspection
  string << " created_at: #{special_attributes['created_at'].inspect}" if special_attributes.key? 'created_at'
  string << " updated_at: #{special_attributes['updated_at'].inspect}" if special_attributes.key? 'updated_at'
  string << '>'
end