Class: Raft::RequestVoteResponse

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#termObject

Returns the value of attribute term

Returns:

  • (Object)

    the current value of term



109
110
111
# File 'lib/raft.rb', line 109

def term
  @term
end

#vote_grantedObject

Returns the value of attribute vote_granted

Returns:

  • (Object)

    the current value of vote_granted



109
110
111
# File 'lib/raft.rb', line 109

def vote_granted
  @vote_granted
end