struct

Serializers::Post::Poll

Inherits JSON::Serializable < Struct < Value < Object

A poll: its options, whether more than one may be chosen, and when it closes (or closed).

Constructors

new(options : Array(String), multiple_choice : Bool, closed_at : Time | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

closed_at
Source
multiple_choice
Source
options
Source

Nested types