Class: Raft::PersistentState
- Inherits:
-
Struct
- Object
- Struct
- Raft::PersistentState
- Defined in:
- lib/raft.rb
Instance Attribute Summary collapse
-
#current_term ⇒ Object
Returns the value of attribute current_term.
-
#log ⇒ Object
Returns the value of attribute log.
-
#voted_for ⇒ Object
Returns the value of attribute voted_for.
Instance Attribute Details
#current_term ⇒ Object
Returns the value of attribute current_term
12 13 14 |
# File 'lib/raft.rb', line 12 def current_term @current_term end |
#log ⇒ Object
Returns the value of attribute log
12 13 14 |
# File 'lib/raft.rb', line 12 def log @log end |
#voted_for ⇒ Object
Returns the value of attribute voted_for
12 13 14 |
# File 'lib/raft.rb', line 12 def voted_for @voted_for end |