class Pupa::Vote

A voter’s vote in a vote event.

Attributes

group_id[RW]
option[RW]
pair_id[RW]
role[RW]
vote_event_id[RW]
voter_id[RW]
weight[RW]

Public Instance Methods

to_s() click to toggle source

Returns the vote’s option, voter ID and vote event ID.

@return [String] the vote’s option, voter ID and vote event ID

# File lib/pupa/models/vote.rb, line 19
def to_s
  "#{option} by #{voter_id} in #{vote_event_id}"
end