Class: Raft::RequestVoteResponse
- Inherits:
-
Struct
- Object
- Struct
- Raft::RequestVoteResponse
- Defined in:
- lib/raft.rb
Overview
class RequestVoteRequest < Struct.new(:term, :candidate_id, :last_log_index, :last_log_term)
def term; @term.to_i; end
def last_log_index; @last_log_index.to_i; end
def last_log_term; @last_log_term.to_i; end
end
Instance Attribute Summary collapse
-
#term ⇒ Object
Returns the value of attribute term.
-
#vote_granted ⇒ Object
Returns the value of attribute vote_granted.
Instance Attribute Details
#term ⇒ Object
Returns the value of attribute term
109 110 111 |
# File 'lib/raft.rb', line 109 def term @term end |
#vote_granted ⇒ Object
Returns the value of attribute vote_granted
109 110 111 |
# File 'lib/raft.rb', line 109 def vote_granted @vote_granted end |