Class: Edoxen::VoteRecord

Inherits:
Lutaml::Model::Serializable
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#affiliationString? (readonly)

Returns the value of attribute affiliation.

Returns:

  • (String, nil)


226
227
228
# File 'sig/edoxen.rbs', line 226

def affiliation
  @affiliation
end

#decision_refString? (readonly)

Returns the value of attribute decision_ref.

Returns:

  • (String, nil)


223
224
225
# File 'sig/edoxen.rbs', line 223

def decision_ref
  @decision_ref
end

#notesString? (readonly)

Returns the value of attribute notes.

Returns:

  • (String, nil)


229
230
231
# File 'sig/edoxen.rbs', line 229

def notes
  @notes
end

#personPerson? (readonly)

Returns the value of attribute person.

Returns:



225
226
227
# File 'sig/edoxen.rbs', line 225

def person
  @person
end

#roleString? (readonly)

Returns the value of attribute role.

Returns:

  • (String, nil)


228
229
230
# File 'sig/edoxen.rbs', line 228

def role
  @role
end

#voteString? (readonly)

Returns the value of attribute vote.

Returns:

  • (String, nil)


227
228
229
# File 'sig/edoxen.rbs', line 227

def vote
  @vote
end

#voting_refString? (readonly)

Returns the value of attribute voting_ref.

Returns:

  • (String, nil)


224
225
226
# File 'sig/edoxen.rbs', line 224

def voting_ref
  @voting_ref
end

Instance Method Details

#affirmative?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/edoxen/vote_record.rb', line 21

def affirmative?
  vote == "affirmative"
end

#teller?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/edoxen/vote_record.rb', line 25

def teller?
  role == "teller"
end