Bonfire.API.MastoCompat.Schemas.Relationship (Bonfire v1.0.1-social-alpha.28)

View Source

Mastodon Relationship schema - represents relationship between two accounts

Summary

Functions

Returns the default values for a Relationship

Creates a new Relationship by merging attrs with defaults

Validates that required fields are present

Functions

defaults()

Returns the default values for a Relationship

new(attrs)

Creates a new Relationship by merging attrs with defaults

validate(relationship)

Validates that required fields are present