diaspora_federation/lib/diaspora_federation/entities/poll_participation.rb
2016-12-28 02:43:16 +01:00

23 lines
721 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, :string
end
end
end