class RailsToolViews::Surface
A persisted UI snapshot whose read and action access is checked by RailsToolViews.
Public Instance Methods
Source
# File app/models/rails_tool_views/surface.rb, line 19 def closed? closed_at.present? end
True once the host closes or abandons the view. Closed views cannot reopen.
Source
# File app/models/rails_tool_views/surface.rb, line 15 def dom_id "rails_tool_views_surface_#{id}" end
Returns the stable browser target identifier.
Source
# File app/models/rails_tool_views/surface.rb, line 27 def lifecycle_status return "purged" if purged? return "abandoned" if abandoned_at closed? ? "closed" : "active" end
Returns the lifecycle independently of domain record or delivery status.
Source
# File app/models/rails_tool_views/surface.rb, line 23 def purged? purged_at.present? end
True when payload cleanup has retained only the durable tombstone.
Source
# File app/models/rails_tool_views/surface.rb, line 33 def snapshot { id: id, component: component_key, component_digest: component_digest, props: props, state: state, revision: revision, lifecycle: { status: lifecycle_status, closed_at: closed_at&.iso8601(6), retain_until: retain_until&.iso8601(6), purged_at: purged_at&.iso8601(6) } } end
Returns the UI projection; it is not a permission grant.