Class: Raft::PersistentState

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

Instance Attribute Summary collapse

Instance Attribute Details

#current_termObject

Returns the value of attribute current_term

Returns:

  • (Object)

    the current value of current_term



12
13
14
# File 'lib/raft.rb', line 12

def current_term
  @current_term
end

#logObject

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



12
13
14
# File 'lib/raft.rb', line 12

def log
  @log
end

#voted_forObject

Returns the value of attribute voted_for

Returns:

  • (Object)

    the current value of voted_for



12
13
14
# File 'lib/raft.rb', line 12

def voted_for
  @voted_for
end