struct ActivityPub::Object::Attachment

Included Modules

Defined in:

models/activity_pub/object.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(url : String, media_type : String, caption : Nil | String = nil, focal_point : Tuple(Float64, Float64) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def audio? #

[View source]
def caption : String | Nil #

[View source]
def caption=(caption : String | Nil) #

[View source]
def css_object_position #

[View source]
def focal_point : Tuple(Float64, Float64) | Nil #

[View source]
def focal_point=(focal_point : Tuple(Float64, Float64) | Nil) #

[View source]
def has_focal_point? #

[View source]
def image? #

[View source]
def media_type : String #

[View source]
def media_type=(media_type : String) #

[View source]
def normalized_focal_point #

[View source]
def url : String #

[View source]
def url=(url : String) #

[View source]
def video? #

[View source]