class
Hamilton::Types::PollAnswer
- Hamilton::Types::PollAnswer
- Reference
- Object
Overview
This object represents an answer of a user in a non-anonymous poll.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/poll_answer.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#option_ids : Array(Int32)
0-based identifiers of chosen answer options.
-
#option_ids=(option_ids : Array(Int32))
0-based identifiers of chosen answer options.
-
#poll_id : String
Unique poll identifier.
-
#poll_id=(poll_id : String)
Unique poll identifier.
-
#user : Hamilton::Types::User | Nil
The user that changed the answer to the poll, if the voter isn't anonymous.
-
#user=(user : Hamilton::Types::User | Nil)
The user that changed the answer to the poll, if the voter isn't anonymous.
-
#voter_chat : Hamilton::Types::Chat | Nil
The chat that changed the answer to the poll, if the voter is anonymous.
-
#voter_chat=(voter_chat : Hamilton::Types::Chat | Nil)
The chat that changed the answer to the poll, if the voter is anonymous.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
0-based identifiers of chosen answer options. May be empty if the vote was retracted.
The user that changed the answer to the poll, if the voter isn't anonymous.
The user that changed the answer to the poll, if the voter isn't anonymous.
The chat that changed the answer to the poll, if the voter is anonymous.
The chat that changed the answer to the poll, if the voter is anonymous.