diaspora_federation/lib/diaspora_federation/entities/poll_participation.rb
2016-07-12 02:08:21 +02:00

23 lines
712 B
Ruby

module DiasporaFederation
module Entities
# This entity represents a participation in poll, i.e. it is issued when a user votes for an answer in a poll.
#
# @see Validators::PollParticipationValidator
class PollParticipation < Entity
# Old signature order
# @deprecated
LEGACY_SIGNATURE_ORDER = %i(guid parent_guid author poll_answer_guid).freeze
# The {PollParticipation} parent is a {Poll}
PARENT_TYPE = "Poll".freeze
include Relayable
# @!attribute [r] poll_answer_guid
# Guid of the answer selected by the user
# @see PollAnswer#guid
# @return [String] poll answer guid
property :poll_answer_guid
end
end
end