Class: GOM::Storage::Filesystem::Loader::Builder
- Inherits:
-
Object
- Object
- GOM::Storage::Filesystem::Loader::Builder
- Defined in:
- lib/gom/storage/filesystem/loader.rb
Overview
Builds a draft out of the file hashes.
Instance Method Summary collapse
- #draft ⇒ Object
-
#initialize(object_id, hash) ⇒ Builder
constructor
A new instance of Builder.
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
#draft ⇒ Object
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 |