Class: PikoStore::Document

Inherits:
BaseDocument show all
Defined in:
lib/piko_store/document.rb

Instance Method Summary collapse

Methods inherited from BaseDocument

#initialize, #to_hash, #to_s

Methods included from Logger

#logger

Constructor Details

This class inherits a constructor from PikoStore::BaseDocument

Instance Method Details

#idObject



24
25
26
# File 'lib/piko_store/document.rb', line 24

def id
  @id ||= converted_id || generated_id
end

#to_hObject



28
29
30
# File 'lib/piko_store/document.rb', line 28

def to_h
  data_with_converted_id
end