Sha256: 9a148dedbfdb179e8d091753ded7122f3bf31181eb8f6332624438e5c530446b
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
module Pupa # A voter's vote in a vote event. class Vote include Model self.schema = 'popolo/vote' include Concerns::Timestamps include Concerns::Sourceable attr_accessor :vote_event_id, :voter_id, :option, :group_id, :role, :weight, :pair_id dump :vote_event_id, :voter_id, :option, :group_id, :role, :weight, :pair_id foreign_key :vote_event_id, :voter_id, :group_id, :pair_id # Returns the vote's option, voter ID and vote event ID. # # @return [String] the vote's option, voter ID and vote event ID def to_s "#{option} by #{voter_id} in #{vote_event_id}" end end end
Version data entries
8 entries across 8 versions & 1 rubygems