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)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
infer_media_type(url : String) : String | Nil
SourceInstance methods
audio?
Sourcecaption
Sourcecaption=(caption : String | Nil)
Sourcecss_object_position
Sourcefocal_point
Sourcefocal_point=(focal_point : Tuple(Float64, Float64) | Nil)
Sourcehas_focal_point?
Sourceimage?
Sourcemedia_type
Sourcemedia_type=(media_type : String)
Sourcenormalized_focal_point
Sourceurl
Sourceurl=(url : String)
Sourceurl_safe
Sourcevideo?
Source