class

Artistry::Link

Inherits Reference < Object

Constructors

new(from_id : Int64, to_id : Int64, rel : String, data : JSON::Any | Nil, created_at : Int64)
Source

Class methods

delete_from(artifact : Artifact | Int64, rel : String) : Nil

Delete all links of a rel from an artifact

Source
delete_to(artifact : Artifact | Int64, rel : String) : Nil

Delete all links of a rel to an artifact

Source

Instance methods

created_at
Source
data
Source
delete

Delete this link

Source
from

Get the source artifact

Source
from_id
Source
to

Get the target artifact

Source
to_id
Source