Class: GOM::Storage::Filesystem::Loader::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/gom/storage/filesystem/loader.rb

Overview

Builds a draft out of the file hashes.

Instance Method Summary collapse

Constructor Details

#initialize(object_id, hash) ⇒ Builder

Returns a new instance of Builder.



39
40
41
# File 'lib/gom/storage/filesystem/loader.rb', line 39

def initialize(object_id, hash)
  @object_id, @hash = object_id, hash
end

Instance Method Details

#draftObject



43
44
45
46
47
48
49
# File 'lib/gom/storage/filesystem/loader.rb', line 43

def draft
  initialize_draft
  set_class_name
  set_properties
  set_relations
  @draft
end