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

Returns:

  • (Object)

    the current value of commit_index



115
116
117
# File 'lib/raft.rb', line 115

def commit_index
  @commit_index
end

#entriesObject

Returns the value of attribute entries

Returns:

  • (Object)

    the current value of entries



115
116
117
# File 'lib/raft.rb', line 115

def entries
  @entries
end

#leader_idObject

Returns the value of attribute leader_id

Returns:

  • (Object)

    the current value of leader_id



115
116
117
# File 'lib/raft.rb', line 115

def leader_id
  @leader_id
end

#prev_log_indexObject

Returns the value of attribute prev_log_index

Returns:

  • (Object)

    the current value of prev_log_index



115
116
117
# File 'lib/raft.rb', line 115

def prev_log_index
  @prev_log_index
end

#prev_log_termObject

Returns the value of attribute prev_log_term

Returns:

  • (Object)

    the current value of prev_log_term



115
116
117
# File 'lib/raft.rb', line 115

def prev_log_term
  @prev_log_term
end

#termObject

Returns the value of attribute term

Returns:

  • (Object)

    the current value of term



115
116
117
# File 'lib/raft.rb', line 115

def term
  @term
end