Class: Raft::RequestVoteRequest

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

Instance Attribute Summary collapse

Instance Attribute Details

#candidate_idObject

Returns the value of attribute candidate_id

Returns:

  • (Object)

    the current value of candidate_id



101
102
103
# File 'lib/raft.rb', line 101

def candidate_id
  @candidate_id
end

#last_log_indexObject

Returns the value of attribute last_log_index

Returns:

  • (Object)

    the current value of last_log_index



101
102
103
# File 'lib/raft.rb', line 101

def last_log_index
  @last_log_index
end

#last_log_termObject

Returns the value of attribute last_log_term

Returns:

  • (Object)

    the current value of last_log_term



101
102
103
# File 'lib/raft.rb', line 101

def last_log_term
  @last_log_term
end

#termObject

Returns the value of attribute term

Returns:

  • (Object)

    the current value of term



101
102
103
# File 'lib/raft.rb', line 101

def term
  @term
end