struct
ActivityPub::Object::Attachment
- ActivityPub::Object::Attachment
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
models/activity_pub/object.crConstructors
- .new(url : String, media_type : String, caption : Nil | String = nil, focal_point : Tuple(Float64, Float64) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #audio?
- #caption : String | Nil
- #caption=(caption : String | Nil)
- #css_object_position
- #focal_point : Tuple(Float64, Float64) | Nil
- #focal_point=(focal_point : Tuple(Float64, Float64) | Nil)
- #has_focal_point?
- #image?
- #media_type : String
- #media_type=(media_type : String)
- #normalized_focal_point
- #url : String
- #url=(url : String)
- #video?
Constructor Detail
def self.new(url : String, media_type : String, caption : Nil | String = nil, focal_point : Tuple(Float64, Float64) | Nil = nil)
#