Class: Raft::AppendEntriesRequest
- Inherits:
-
Struct
- Object
- Struct
- Raft::AppendEntriesRequest
- Defined in:
- lib/raft.rb
Overview
class RequestVoteResponse < Struct.new(:term, :vote_granted)
def term; @term.to_i; end
end
Instance Attribute Summary collapse
-
#commit_index ⇒ Object
Returns the value of attribute commit_index.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#leader_id ⇒ Object
Returns the value of attribute leader_id.
-
#prev_log_index ⇒ Object
Returns the value of attribute prev_log_index.
-
#prev_log_term ⇒ Object
Returns the value of attribute prev_log_term.
-
#term ⇒ Object
Returns the value of attribute term.
Instance Attribute Details
#commit_index ⇒ Object
Returns the value of attribute commit_index
115 116 117 |
# File 'lib/raft.rb', line 115 def commit_index @commit_index end |
#entries ⇒ Object
Returns the value of attribute entries
115 116 117 |
# File 'lib/raft.rb', line 115 def entries @entries end |
#leader_id ⇒ Object
Returns the value of attribute leader_id
115 116 117 |
# File 'lib/raft.rb', line 115 def leader_id @leader_id end |
#prev_log_index ⇒ Object
Returns the value of attribute prev_log_index
115 116 117 |
# File 'lib/raft.rb', line 115 def prev_log_index @prev_log_index end |
#prev_log_term ⇒ Object
Returns the value of attribute prev_log_term
115 116 117 |
# File 'lib/raft.rb', line 115 def prev_log_term @prev_log_term end |
#term ⇒ Object
Returns the value of attribute term
115 116 117 |
# File 'lib/raft.rb', line 115 def term @term end |