Class: Edoxen::VoteRecord
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Edoxen::VoteRecord
- Defined in:
- lib/edoxen/vote_record.rb,
sig/edoxen.rbs
Overview
A single vote on a Decision, recorded against the Voting instance
that captured it. voting_ref links to the Voting URN; decision_ref
links to the Decision URN (often derivable from the Voting's motion,
but explicit for clarity).
role is open for adopter-defined values: teller (parliamentary
division counter), proxy_holder, observer, etc.
Instance Attribute Summary collapse
-
#affiliation ⇒ String?
readonly
Returns the value of attribute affiliation.
-
#decision_ref ⇒ String?
readonly
Returns the value of attribute decision_ref.
-
#notes ⇒ String?
readonly
Returns the value of attribute notes.
-
#person ⇒ Person?
readonly
Returns the value of attribute person.
-
#role ⇒ String?
readonly
Returns the value of attribute role.
-
#vote ⇒ String?
readonly
Returns the value of attribute vote.
-
#voting_ref ⇒ String?
readonly
Returns the value of attribute voting_ref.
Instance Method Summary collapse
Instance Attribute Details
#affiliation ⇒ String? (readonly)
Returns the value of attribute affiliation.
226 227 228 |
# File 'sig/edoxen.rbs', line 226 def affiliation @affiliation end |
#decision_ref ⇒ String? (readonly)
Returns the value of attribute decision_ref.
223 224 225 |
# File 'sig/edoxen.rbs', line 223 def decision_ref @decision_ref end |
#notes ⇒ String? (readonly)
Returns the value of attribute notes.
229 230 231 |
# File 'sig/edoxen.rbs', line 229 def notes @notes end |
#person ⇒ Person? (readonly)
Returns the value of attribute person.
225 226 227 |
# File 'sig/edoxen.rbs', line 225 def person @person end |
#role ⇒ String? (readonly)
Returns the value of attribute role.
228 229 230 |
# File 'sig/edoxen.rbs', line 228 def role @role end |
#vote ⇒ String? (readonly)
Returns the value of attribute vote.
227 228 229 |
# File 'sig/edoxen.rbs', line 227 def vote @vote end |
#voting_ref ⇒ String? (readonly)
Returns the value of attribute voting_ref.
224 225 226 |
# File 'sig/edoxen.rbs', line 224 def voting_ref @voting_ref end |
Instance Method Details
#affirmative? ⇒ Boolean
21 22 23 |
# File 'lib/edoxen/vote_record.rb', line 21 def affirmative? vote == "affirmative" end |
#teller? ⇒ Boolean
25 26 27 |
# File 'lib/edoxen/vote_record.rb', line 25 def teller? role == "teller" end |