struct

DataDungeon::AssetMeta

Inherits Struct < Value < Object

Common base for all media metadata. Lets a single accessor (DB#get_with_meta) return the sidecar appropriate to the asset's media as one polymorphic type. Callers narrow with .as?(ImageMeta) etc. when they need media-specific fields.

Constructors

Instance methods

initialize
Source
presentation

Renderer placement hint (opaque JSON blob). Present on visual media (image, video); nil for audio and text.

Source