struct

ActivityPub::Object::Attachment

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(url : String, media_type : String, caption : Nil | String = nil, focal_point : Tuple(Float64, Float64) | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

infer_media_type(url : String) : String | Nil
Source

Instance methods

audio?
Source
caption
Source
caption=(caption : String | Nil)
Source
css_object_position
Source
focal_point
Source
focal_point=(focal_point : Tuple(Float64, Float64) | Nil)
Source
has_focal_point?
Source
image?
Source
media_type
Source
media_type=(media_type : String)
Source
normalized_focal_point
Source
url=(url : String)
Source
url_safe
Source
video?
Source