struct

ActivityPub::Actor::Attachment

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(name : String, type : String, value : String)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

name
Source
name=(name : String)
Source
type
Source
type=(type : String)
Source
value
Source
value=(value : String)
Source
value_as_html(length : Int32 = 50) : Ktistec::SafeHTML

Renders the attachment value as HTML that is safe to interpolate unescaped.

Source