Class: Raft::TemporaryState

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

Instance Attribute Summary collapse

Instance Attribute Details

#commit_indexObject

Returns the value of attribute commit_index

Returns:

  • (Object)

    the current value of commit_index



14
15
16
# File 'lib/raft.rb', line 14

def commit_index
  @commit_index
end

#leader_idObject

Returns the value of attribute leader_id

Returns:

  • (Object)

    the current value of leader_id



14
15
16
# File 'lib/raft.rb', line 14

def leader_id
  @leader_id
end