struct
Sepia::PathResolver::ObjectInfo
- Sepia::PathResolver::ObjectInfo
- Struct
- Value
- Object
Overview
Information about a resolved Sepia object path
Defined in:
sepia/path_resolver.crConstructors
Instance Method Summary
- #class_name : String
- #class_name=(class_name : String)
-
#container? : Bool
Check if this path represents a Container object
- #full_path : String
- #full_path=(full_path : String)
-
#object(klass : Class) : Object | Nil
Load the actual Sepia object from storage using a given class
- #object_id : String
- #object_id=(object_id : String)
- #relative_path : String
- #relative_path=(relative_path : String)
-
#serializable? : Bool
Check if this path represents a Serializable object
- #storage_path : String
- #storage_path=(storage_path : String)
Constructor Detail
def self.new(class_name : String, object_id : String, full_path : String, relative_path : String, storage_path : String)
#
Instance Method Detail
Load the actual Sepia object from storage using a given class
obj = info.object(TestDocument)
if obj
puts "Loaded #{obj.class.name} with ID #{obj.sepia_id}"
end