struct

Serializers::Post::Attachment

Inherits JSON::Serializable < Struct < Value < Object

An attachment.

Constructors

new(url : String, media_type : String, caption : String | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caption
clone
Source
copy_with(url _url = @url, media_type _media_type = @media_type, caption _caption = @caption)
Source
media_type
url