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

View Source

Mastodon Poll schema - represents a poll attached to a status.

See: https://docs.joinmastodon.org/entities/Poll/

Summary

Functions

Returns the default values for a Poll

Creates a new Poll by merging attrs with defaults

Validates that required fields are present

Functions

defaults()

Returns the default values for a Poll

new(attrs)

Creates a new Poll by merging attrs with defaults

validate(poll)

Validates that required fields are present