Class: Maglev::SnapshotBuilder
- Inherits:
-
Object
- Object
- Maglev::SnapshotBuilder
- Defined in:
- lib/maglev/snapshot_builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(record, config, path: nil, visited: nil, attachment_extractor: nil, remaining_depth: Maglev.configuration.max_relation_depth) ⇒ SnapshotBuilder
constructor
A new instance of SnapshotBuilder.
Constructor Details
#initialize(record, config, path: nil, visited: nil, attachment_extractor: nil, remaining_depth: Maglev.configuration.max_relation_depth) ⇒ SnapshotBuilder
Returns a new instance of SnapshotBuilder.
10 11 12 13 14 15 16 17 |
# File 'lib/maglev/snapshot_builder.rb', line 10 def initialize(record, config, path: nil, visited: nil, attachment_extractor: nil, remaining_depth: Maglev.configuration.max_relation_depth) @record = record @config = config @path = path @visited = visited || {} @attachment_extractor = || Maglev.configuration. || AttachmentExtractor.new @remaining_depth = remaining_depth end |