class Hamilton::Types::PollAnswer

Overview

This object represents an answer of a user in a non-anonymous poll.

Included Modules

Defined in:

types/poll_answer.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def option_ids : Array(Int32) #

0-based identifiers of chosen answer options. May be empty if the vote was retracted.


def option_ids=(option_ids : Array(Int32)) #

0-based identifiers of chosen answer options. May be empty if the vote was retracted.


def poll_id : String #

Unique poll identifier.


def poll_id=(poll_id : String) #

Unique poll identifier.


def user : Hamilton::Types::User | Nil #

The user that changed the answer to the poll, if the voter isn't anonymous.


def user=(user : Hamilton::Types::User | Nil) #

The user that changed the answer to the poll, if the voter isn't anonymous.


def voter_chat : Hamilton::Types::Chat | Nil #

The chat that changed the answer to the poll, if the voter is anonymous.


def voter_chat=(voter_chat : Hamilton::Types::Chat | Nil) #

The chat that changed the answer to the poll, if the voter is anonymous.