DataDungeon::AssetRecord
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(id : Int64, asset_type : String, media : String, content_type : String, file_path : String, key : String | Nil, file_hash : String | Nil, created_at : String, last_used_at : String | Nil = nil, use_count : Int32 = 0, permanent : Bool = false, generator : String | Nil = nil, generation : String | Nil = nil, description : String | Nil = nil, description_hash : String | Nil = nil, generated : Bool = false, rating : Int32 | Nil = nil, flagged : Bool = false, made_at : String | Nil = nil, retired_at : String | Nil = nil, has_recipe : Bool = false)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
asset_type
Sourcecontent_type
Sourcecreated_at
Sourcedescription
Sourcedescription_hash
The description's SHA-256, the same in every store: assets with the
same hash share one description (list_assets(description_hash:)).
file_hash
Sourcefile_path
Sourceflagged
Sourcegenerated
Sourcegeneration
Sourcegenerator
Sourceid
Sourcekey
The asset's key in its type's own index, derived from its traits: its
type and traits' values in the registered order,
portrait.golden.pg.f.human. Several assets can share a key; the id is
what names one durably. Nil for an asset of an unregistered type,
stored before 0.12 required registering.
last_used_at
Sourcemade_at
When the content was made (by default, when it was filed): the date "newest first" prefers by.
media
Sourcepermanent
Sourcerating
Sourceretired?
Sourceretired_at
When it was retired, by a newer take superseding it or on its own; a retired asset is kept but left out of lookups, listings and searches.
use_count
Source