API::V1::Serializers::Instance
Inherits JSON::Serializable < Struct < Value < Object
Serializes instance metadata to Mastodon Instance v1 JSON format.
See: https://docs.joinmastodon.org/entities/V1_Instance/
Note: v1 was deprecated in Mastodon 4.0.0 (2022) but retained for compatibility.
Constants
SUPPORTED_MEDIA_TYPES = Ktistec::Constants::SUPPORTED_MEDIA_TYPES
Constructors
new(uri : String, title : String, short_description : String, description : String, email : String, version : String, urls : Urls, stats : Stats, thumbnail : String | Nil, languages : Array(String), registrations : Bool, approval_required : Bool, invites_enabled : Bool, configuration : Configuration, contact_account : Nil, rules : Array(Rule))
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
Instance methods
approval_required
Sourceapproval_required=(approval_required : Bool)
Sourceconfiguration
Sourceconfiguration=(configuration : Configuration)
Sourcecontact_account
Sourcecontact_account=(contact_account : Nil)
Sourcedescription
Sourcedescription=(description : String)
Sourceemail
Sourceemail=(email : String)
Sourceinvites_enabled
Sourceinvites_enabled=(invites_enabled : Bool)
Sourcelanguages
Sourceregistrations
Sourceregistrations=(registrations : Bool)
Sourcerules
Sourceshort_description
Sourceshort_description=(short_description : String)
Sourcestats
Sourcestats=(stats : Stats)
Sourcethumbnail
Sourcethumbnail=(thumbnail : String | Nil)
Sourcetitle
Sourcetitle=(title : String)
Sourceuri
Sourceuri=(uri : String)
Sourceurls
Sourceurls=(urls : Urls)
Sourceversion
Sourceversion=(version : String)
Source