struct

Sepia::PathResolver::ObjectInfo

Inherits Struct < Value < Object

Information about a resolved Sepia object path

Constructors

new(class_name : String, object_id : String, full_path : String, relative_path : String, storage_path : String)
Source

Instance methods

class_name
Source
class_name=(class_name : String)
Source
container?

Check if this path represents a Container object

Source
full_path
Source
full_path=(full_path : String)
Source
object(klass : Class) : Object | Nil

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
Source
object_id
Source
object_id=(object_id : String)
Source
relative_path
Source
relative_path=(relative_path : String)
Source
serializable?

Check if this path represents a Serializable object

Source
storage_path
Source
storage_path=(storage_path : String)
Source