Class: Raft::AppendEntriesRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/raft.rb

Overview

class RequestVoteResponse < Struct.new(:term, :vote_granted)

def term; @term.to_i; end

end

Instance Attribute Summary collapse

Instance Attribute Details

#commit_indexObject

Returns the value of attribute commit_index



99
100
101
# File 'lib/raft.rb', line 99

def commit_index
  @commit_index
end

#entriesObject

Returns the value of attribute entries



99
100
101
# File 'lib/raft.rb', line 99

def entries
  @entries
end

#leader_idObject

Returns the value of attribute leader_id



99
100
101
# File 'lib/raft.rb', line 99

def leader_id
  @leader_id
end

#prev_log_indexObject

Returns the value of attribute prev_log_index



99
100
101
# File 'lib/raft.rb', line 99

def prev_log_index
  @prev_log_index
end

#prev_log_termObject

Returns the value of attribute prev_log_term



99
100
101
# File 'lib/raft.rb', line 99

def prev_log_term
  @prev_log_term
end

#termObject

Returns the value of attribute term



99
100
101
# File 'lib/raft.rb', line 99

def term
  @term
end